diff -Nru apache-arrow-glib-0.2.1.20170322/arrow-glib/array.cpp apache-arrow-glib-0.2.1.20170401/arrow-glib/array.cpp --- apache-arrow-glib-0.2.1.20170322/arrow-glib/array.cpp 2017-03-22 15:57:56.000000000 +0000 +++ apache-arrow-glib-0.2.1.20170401/arrow-glib/array.cpp 2017-03-31 17:00:11.000000000 +0000 @@ -24,6 +24,7 @@ #include #include #include +#include #include #include #include @@ -174,6 +175,20 @@ } /** + * garrow_array_get_data_type: + * @array: A #GArrowArray. + * + * Returns: (transfer full): The #GArrowDataType for the array. + */ +GArrowDataType * +garrow_array_get_data_type(GArrowArray *array) +{ + auto arrow_array = garrow_array_get_raw(array); + auto arrow_data_type = arrow_array->type(); + return garrow_data_type_new_raw(&arrow_data_type); +} + +/** * garrow_array_slice: * @array: A #GArrowArray. * @offset: The offset of sub #GArrowArray. diff -Nru apache-arrow-glib-0.2.1.20170322/arrow-glib/array.h apache-arrow-glib-0.2.1.20170401/arrow-glib/array.h --- apache-arrow-glib-0.2.1.20170322/arrow-glib/array.h 2017-03-22 15:57:56.000000000 +0000 +++ apache-arrow-glib-0.2.1.20170401/arrow-glib/array.h 2017-03-31 17:00:11.000000000 +0000 @@ -19,7 +19,7 @@ #pragma once -#include +#include G_BEGIN_DECLS @@ -60,6 +60,7 @@ gint64 garrow_array_get_length (GArrowArray *array); gint64 garrow_array_get_offset (GArrowArray *array); gint64 garrow_array_get_n_nulls (GArrowArray *array); +GArrowDataType *garrow_array_get_data_type(GArrowArray *array); GArrowArray *garrow_array_slice (GArrowArray *array, gint64 offset, gint64 length); diff -Nru apache-arrow-glib-0.2.1.20170322/arrow-glib/enums.c apache-arrow-glib-0.2.1.20170401/arrow-glib/enums.c --- apache-arrow-glib-0.2.1.20170322/arrow-glib/enums.c 2017-03-22 15:58:50.000000000 +0000 +++ apache-arrow-glib-0.2.1.20170401/arrow-glib/enums.c 2017-04-01 11:18:34.000000000 +0000 @@ -69,9 +69,11 @@ {GARROW_TYPE_DOUBLE, "GARROW_TYPE_DOUBLE", "double"}, {GARROW_TYPE_STRING, "GARROW_TYPE_STRING", "string"}, {GARROW_TYPE_BINARY, "GARROW_TYPE_BINARY", "binary"}, - {GARROW_TYPE_DATE, "GARROW_TYPE_DATE", "date"}, + {GARROW_TYPE_DATE32, "GARROW_TYPE_DATE32", "date32"}, + {GARROW_TYPE_DATE64, "GARROW_TYPE_DATE64", "date64"}, {GARROW_TYPE_TIMESTAMP, "GARROW_TYPE_TIMESTAMP", "timestamp"}, - {GARROW_TYPE_TIME, "GARROW_TYPE_TIME", "time"}, + {GARROW_TYPE_TIME32, "GARROW_TYPE_TIME32", "time32"}, + {GARROW_TYPE_TIME64, "GARROW_TYPE_TIME64", "time64"}, {GARROW_TYPE_INTERVAL, "GARROW_TYPE_INTERVAL", "interval"}, {GARROW_TYPE_DECIMAL, "GARROW_TYPE_DECIMAL", "decimal"}, {GARROW_TYPE_LIST, "GARROW_TYPE_LIST", "list"}, diff -Nru apache-arrow-glib-0.2.1.20170322/arrow-glib/table.cpp apache-arrow-glib-0.2.1.20170401/arrow-glib/table.cpp --- apache-arrow-glib-0.2.1.20170322/arrow-glib/table.cpp 2017-03-22 15:57:56.000000000 +0000 +++ apache-arrow-glib-0.2.1.20170401/arrow-glib/table.cpp 2017-03-31 17:00:11.000000000 +0000 @@ -126,15 +126,13 @@ /** * garrow_table_new: - * @name: The name of the table. * @schema: The schema of the table. * @columns: (element-type GArrowColumn): The columns of the table. * * Returns: A newly created #GArrowTable. */ GArrowTable * -garrow_table_new(const gchar *name, - GArrowSchema *schema, +garrow_table_new(GArrowSchema *schema, GList *columns) { std::vector> arrow_columns; @@ -144,26 +142,12 @@ } auto arrow_table = - std::make_shared(name, - garrow_schema_get_raw(schema), + std::make_shared(garrow_schema_get_raw(schema), arrow_columns); return garrow_table_new_raw(&arrow_table); } /** - * garrow_table_get_name: - * @table: A #GArrowTable. - * - * Returns: The name of the table. - */ -const gchar * -garrow_table_get_name(GArrowTable *table) -{ - const auto arrow_table = garrow_table_get_raw(table); - return arrow_table->name().c_str(); -} - -/** * garrow_table_get_schema: * @table: A #GArrowTable. * diff -Nru apache-arrow-glib-0.2.1.20170322/arrow-glib/table.h apache-arrow-glib-0.2.1.20170401/arrow-glib/table.h --- apache-arrow-glib-0.2.1.20170322/arrow-glib/table.h 2017-03-22 15:57:56.000000000 +0000 +++ apache-arrow-glib-0.2.1.20170401/arrow-glib/table.h 2017-03-31 17:00:11.000000000 +0000 @@ -66,11 +66,9 @@ GType garrow_table_get_type (void) G_GNUC_CONST; -GArrowTable *garrow_table_new (const gchar *name, - GArrowSchema *schema, +GArrowTable *garrow_table_new (GArrowSchema *schema, GList *columns); -const gchar *garrow_table_get_name (GArrowTable *table); GArrowSchema *garrow_table_get_schema (GArrowTable *table); GArrowColumn *garrow_table_get_column (GArrowTable *table, guint i); diff -Nru apache-arrow-glib-0.2.1.20170322/arrow-glib/type.cpp apache-arrow-glib-0.2.1.20170401/arrow-glib/type.cpp --- apache-arrow-glib-0.2.1.20170322/arrow-glib/type.cpp 2017-03-22 15:57:56.000000000 +0000 +++ apache-arrow-glib-0.2.1.20170401/arrow-glib/type.cpp 2017-03-31 17:00:11.000000000 +0000 @@ -66,12 +66,16 @@ return GARROW_TYPE_STRING; case arrow::Type::type::BINARY: return GARROW_TYPE_BINARY; - case arrow::Type::type::DATE: - return GARROW_TYPE_DATE; + case arrow::Type::type::DATE32: + return GARROW_TYPE_DATE32; + case arrow::Type::type::DATE64: + return GARROW_TYPE_DATE64; case arrow::Type::type::TIMESTAMP: return GARROW_TYPE_TIMESTAMP; - case arrow::Type::type::TIME: - return GARROW_TYPE_TIME; + case arrow::Type::type::TIME32: + return GARROW_TYPE_TIME32; + case arrow::Type::type::TIME64: + return GARROW_TYPE_TIME64; case arrow::Type::type::INTERVAL: return GARROW_TYPE_INTERVAL; case arrow::Type::type::DECIMAL: diff -Nru apache-arrow-glib-0.2.1.20170322/arrow-glib/type.h apache-arrow-glib-0.2.1.20170401/arrow-glib/type.h --- apache-arrow-glib-0.2.1.20170322/arrow-glib/type.h 2017-03-22 15:57:56.000000000 +0000 +++ apache-arrow-glib-0.2.1.20170401/arrow-glib/type.h 2017-03-31 17:00:11.000000000 +0000 @@ -40,10 +40,12 @@ * @GARROW_TYPE_DOUBLE: 8-byte floating point value. * @GARROW_TYPE_STRING: UTF-8 variable-length string. * @GARROW_TYPE_BINARY: Variable-length bytes (no guarantee of UTF-8-ness). - * @GARROW_TYPE_DATE: By default, int32 days since the UNIX epoch. + * @GARROW_TYPE_DATE32: int32 days since the UNIX epoch. + * @GARROW_TYPE_DATE64: int64 milliseconds since the UNIX epoch. * @GARROW_TYPE_TIMESTAMP: Exact timestamp encoded with int64 since UNIX epoch. * Default unit millisecond. - * @GARROW_TYPE_TIME: Exact time encoded with int64, default unit millisecond. + * @GARROW_TYPE_TIME32: Exact time encoded with int32, supporting seconds or milliseconds + * @GARROW_TYPE_TIME64: Exact time encoded with int64, supporting micro- or nanoseconds * @GARROW_TYPE_INTERVAL: YEAR_MONTH or DAY_TIME interval in SQL style. * @GARROW_TYPE_DECIMAL: Precision- and scale-based decimal * type. Storage type depends on the parameters. @@ -70,9 +72,11 @@ GARROW_TYPE_DOUBLE, GARROW_TYPE_STRING, GARROW_TYPE_BINARY, - GARROW_TYPE_DATE, + GARROW_TYPE_DATE32, + GARROW_TYPE_DATE64, GARROW_TYPE_TIMESTAMP, - GARROW_TYPE_TIME, + GARROW_TYPE_TIME32, + GARROW_TYPE_TIME64, GARROW_TYPE_INTERVAL, GARROW_TYPE_DECIMAL, GARROW_TYPE_LIST, diff -Nru apache-arrow-glib-0.2.1.20170322/debian/changelog apache-arrow-glib-0.2.1.20170401/debian/changelog --- apache-arrow-glib-0.2.1.20170322/debian/changelog 2017-03-22 15:59:49.000000000 +0000 +++ apache-arrow-glib-0.2.1.20170401/debian/changelog 2017-04-01 11:50:58.000000000 +0000 @@ -1,8 +1,14 @@ -apache-arrow-glib (0.2.1.20170322-2~yakkety1) yakkety; urgency=medium +apache-arrow-glib (0.2.1.20170401-2~yakkety1) yakkety; urgency=medium * Build for yakkety. - -- Kouhei Sutou Thu, 23 Mar 2017 00:59:49 +0900 + -- Kouhei Sutou Sat, 01 Apr 2017 20:50:58 +0900 + +apache-arrow-glib (0.2.1.20170401-1) unstable; urgency=low + + * New upstream release. + + -- Kouhei Sutou Sat, 01 Apr 2017 00:00:00 +0900 apache-arrow-glib (0.2.1.20170322-1) unstable; urgency=low diff -Nru apache-arrow-glib-0.2.1.20170322/doc/reference/arrow-glib-sections.txt apache-arrow-glib-0.2.1.20170401/doc/reference/arrow-glib-sections.txt --- apache-arrow-glib-0.2.1.20170322/doc/reference/arrow-glib-sections.txt 2017-03-22 15:59:21.000000000 +0000 +++ apache-arrow-glib-0.2.1.20170401/doc/reference/arrow-glib-sections.txt 2017-04-01 11:19:05.000000000 +0000 @@ -5,6 +5,7 @@ garrow_array_get_length garrow_array_get_offset garrow_array_get_n_nulls +garrow_array_get_data_type garrow_array_slice GARROW_ARRAY @@ -970,7 +971,6 @@ GArrowTable GArrowTable garrow_table_new -garrow_table_get_name garrow_table_get_schema garrow_table_get_column garrow_table_get_n_columns diff -Nru apache-arrow-glib-0.2.1.20170322/doc/reference/html/api-index-full.html apache-arrow-glib-0.2.1.20170401/doc/reference/html/api-index-full.html --- apache-arrow-glib-0.2.1.20170322/doc/reference/html/api-index-full.html 2017-03-22 15:59:21.000000000 +0000 +++ apache-arrow-glib-0.2.1.20170401/doc/reference/html/api-index-full.html 2017-04-01 11:19:05.000000000 +0000 @@ -428,6 +428,10 @@
+garrow_array_get_data_type, function in GArrowArray +
+
+
garrow_array_get_length, function in GArrowArray
@@ -960,10 +964,6 @@
-garrow_table_get_name, function in GArrowTable -
-
-
garrow_table_get_n_columns, function in GArrowTable
diff -Nru apache-arrow-glib-0.2.1.20170322/doc/reference/html/arrow-glib.devhelp2 apache-arrow-glib-0.2.1.20170401/doc/reference/html/arrow-glib.devhelp2 --- apache-arrow-glib-0.2.1.20170322/doc/reference/html/arrow-glib.devhelp2 2017-03-22 15:59:21.000000000 +0000 +++ apache-arrow-glib-0.2.1.20170401/doc/reference/html/arrow-glib.devhelp2 2017-04-01 11:19:05.000000000 +0000 @@ -115,6 +115,7 @@ + @@ -274,7 +275,6 @@ - @@ -386,9 +386,11 @@ - + + - + + diff -Nru apache-arrow-glib-0.2.1.20170322/doc/reference/html/arrow-glib-GArrowType.html apache-arrow-glib-0.2.1.20170401/doc/reference/html/arrow-glib-GArrowType.html --- apache-arrow-glib-0.2.1.20170322/doc/reference/html/arrow-glib-GArrowType.html 2017-03-22 15:59:21.000000000 +0000 +++ apache-arrow-glib-0.2.1.20170401/doc/reference/html/arrow-glib-GArrowType.html 2017-04-01 11:19:05.000000000 +0000 @@ -173,9 +173,16 @@   -

GARROW_TYPE_DATE

+

GARROW_TYPE_DATE32

-

By default, int32 days since the UNIX epoch.

+

int32 days since the UNIX epoch.

+ +  + + +

GARROW_TYPE_DATE64

+ +

int64 milliseconds since the UNIX epoch.

  @@ -188,9 +195,16 @@   -

GARROW_TYPE_TIME

+

GARROW_TYPE_TIME32

+ +

Exact time encoded with int32, supporting seconds or milliseconds

+ +  + + +

GARROW_TYPE_TIME64

-

Exact time encoded with int64, default unit millisecond.

+

Exact time encoded with int64, supporting micro- or nanoseconds

  diff -Nru apache-arrow-glib-0.2.1.20170322/doc/reference/html/GArrowArray.html apache-arrow-glib-0.2.1.20170401/doc/reference/html/GArrowArray.html --- apache-arrow-glib-0.2.1.20170322/doc/reference/html/GArrowArray.html 2017-03-22 15:59:21.000000000 +0000 +++ apache-arrow-glib-0.2.1.20170401/doc/reference/html/GArrowArray.html 2017-04-01 11:19:05.000000000 +0000 @@ -67,6 +67,14 @@ +GArrowDataType * + + +garrow_array_get_data_type () + + + + GArrowArray * @@ -209,6 +217,32 @@
+
+

garrow_array_get_data_type ()

+
GArrowDataType *
+garrow_array_get_data_type (GArrowArray *array);
+
+

Parameters

+
+++++ + + + + + +

array

A GArrowArray.

 
+
+
+

Returns

+

The GArrowDataType for the array.

+

[transfer full]

+
+
+

garrow_array_slice ()

GArrowArray *
diff -Nru apache-arrow-glib-0.2.1.20170322/doc/reference/html/GArrowTable.html apache-arrow-glib-0.2.1.20170401/doc/reference/html/GArrowTable.html
--- apache-arrow-glib-0.2.1.20170322/doc/reference/html/GArrowTable.html	2017-03-22 15:59:21.000000000 +0000
+++ apache-arrow-glib-0.2.1.20170401/doc/reference/html/GArrowTable.html	2017-04-01 11:19:05.000000000 +0000
@@ -50,13 +50,6 @@
 
 
 
-const gchar *
-
-
-garrow_table_get_name ()
-
-
-
 
 GArrowSchema *
 
@@ -135,8 +128,7 @@
 

garrow_table_new ()

GArrowTable *
-garrow_table_new (const gchar *name,
-                  GArrowSchema *schema,
+garrow_table_new (GArrowSchema *schema,
                   GList *columns);

Parameters

@@ -148,11 +140,6 @@ -

name

-

The name of the table.

-  - -

schema

The schema of the table.

  @@ -171,31 +158,6 @@

-
-

garrow_table_get_name ()

-
const gchar *
-garrow_table_get_name (GArrowTable *table);
-
-

Parameters

-
----- - - - - - -

table

A GArrowTable.

 
-
-
-

Returns

-

The name of the table.

-
-
-

garrow_table_get_schema ()

GArrowSchema *
diff -Nru apache-arrow-glib-0.2.1.20170322/README.md apache-arrow-glib-0.2.1.20170401/README.md
--- apache-arrow-glib-0.2.1.20170322/README.md	2017-03-22 15:57:56.000000000 +0000
+++ apache-arrow-glib-0.2.1.20170401/README.md	2017-03-31 17:00:11.000000000 +0000
@@ -42,9 +42,77 @@
 
 ## Install
 
+You can use packages or build by yourself to install Arrow GLib. It's
+recommended that you use packages.
+
+Note that the packages are "unofficial". "Official" packages will be
+released in the future.
+
 ### Package
 
-TODO
+There are supported platforms:
+
+  * Debian GNU/Linux Jessie
+  * Ubuntu 16.04 LTS
+  * Ubuntu 16.10
+  * CentOS 7
+
+You can feedback to https://github.com/kou/arrow-packages about
+packages things.
+
+#### Debian GNU/Linux jessie
+
+You need to add the following apt-lines to
+`/etc/apt/sources.list.d/groonga.list`:
+
+```text
+deb http://packages.groonga.org/debian/ jessie main
+deb-src http://packages.groonga.org/debian/ jessie main
+```
+
+Then you need to run the following command lines:
+
+```text
+% sudo apt update
+% sudo apt install -y --allow-unauthenticated groonga-keyring
+% sudo apt update
+```
+
+Now you can install Arrow GLib packages:
+
+```text
+% sudo apt install -y libarrow-glib-dev
+```
+
+#### Ubuntu 16.04 LTS and Ubuntu 16.10
+
+You need to add an APT repository:
+
+```text
+% sudo apt install -y software-properties-common
+% sudo add-apt-repository -y ppa:groonga/ppa
+% sudo apt update
+```
+
+Now you can install Arrow GLib packages:
+
+```text
+% sudo apt install -y libarrow-glib-dev
+```
+
+#### CentOS 7
+
+You need to add a Yum repository:
+
+```text
+% sudo yum install -y http://packages.groonga.org/centos/groonga-release-1.2.0-1.noarch.rpm
+```
+
+Now you can install Arrow GLib packages:
+
+```text
+% sudo yum install -y --enablerepo=epel arrow-glib-devel
+```
 
 ### Build
 
@@ -58,7 +126,7 @@
 On Debian GNU/Linux or Ubuntu:
 
 ```text
-% sudo apt install -y -V gtk-doc-tools libgirepository1.0-dev
+% sudo apt install -y -V gtk-doc-tools autoconf-archive libgirepository1.0-dev
 ```
 
 On CentOS 7 or later:
@@ -76,7 +144,8 @@
 Now, you can build Arrow GLib:
 
 ```text
-% cd glib
+% cd c_glib
+% ./autogen.sh
 % ./configure --enable-gtk-doc
 % make
 % sudo make install