Top | ![]() |
![]() |
![]() |
![]() |
GObject ├── GArrowArrayBuilder │ ├── GArrowBinaryArrayBuilder │ │ ╰── GArrowStringArrayBuilder │ ├── GArrowBooleanArrayBuilder │ ├── GArrowDate32ArrayBuilder │ ├── GArrowDate64ArrayBuilder │ ├── GArrowDoubleArrayBuilder │ ├── GArrowFloatArrayBuilder │ ├── GArrowInt16ArrayBuilder │ ├── GArrowInt32ArrayBuilder │ ├── GArrowInt64ArrayBuilder │ ├── GArrowInt8ArrayBuilder │ ├── GArrowIntArrayBuilder │ ├── GArrowListArrayBuilder │ ├── GArrowStructArrayBuilder │ ├── GArrowTime32ArrayBuilder │ ├── GArrowTime64ArrayBuilder │ ├── GArrowTimestampArrayBuilder │ ├── GArrowUInt16ArrayBuilder │ ├── GArrowUInt32ArrayBuilder │ ├── GArrowUInt64ArrayBuilder │ ╰── GArrowUInt8ArrayBuilder ╰── GArrowArrayBuilder ├── GArrowBinaryArrayBuilder │ ╰── GArrowStringArrayBuilder ├── GArrowBooleanArrayBuilder ├── GArrowDate32ArrayBuilder ├── GArrowDate64ArrayBuilder ├── GArrowDoubleArrayBuilder ├── GArrowFloatArrayBuilder ├── GArrowInt16ArrayBuilder ├── GArrowInt32ArrayBuilder ├── GArrowInt64ArrayBuilder ├── GArrowInt8ArrayBuilder ├── GArrowIntArrayBuilder ├── GArrowListArrayBuilder ├── GArrowStructArrayBuilder ├── GArrowTime32ArrayBuilder ├── GArrowTime64ArrayBuilder ├── GArrowTimestampArrayBuilder ├── GArrowUInt16ArrayBuilder ├── GArrowUInt32ArrayBuilder ├── GArrowUInt64ArrayBuilder ╰── GArrowUInt8ArrayBuilder
GArrowArrayBuilder is a base class for all array builder classes such as GArrowBooleanArrayBuilder.
You need to use array builder class to create a new array.
GArrowBooleanArrayBuilder is the class to create a new GArrowBooleanArray.
GArrowIntArrayBuilder is the class to create a new integer array. Integer size is automatically chosen. It's recommend that you use this builder instead of specific integer size builder such as GArrowInt8ArrayBuilder.
GArrowInt8ArrayBuilder is the class to create a new GArrowInt8Array.
GArrowUInt8ArrayBuilder is the class to create a new GArrowUInt8Array.
GArrowInt16ArrayBuilder is the class to create a new GArrowInt16Array.
GArrowUInt16ArrayBuilder is the class to create a new GArrowUInt16Array.
GArrowInt32ArrayBuilder is the class to create a new GArrowInt32Array.
GArrowUInt32ArrayBuilder is the class to create a new GArrowUInt32Array.
GArrowInt64ArrayBuilder is the class to create a new GArrowInt64Array.
GArrowUInt64ArrayBuilder is the class to create a new GArrowUInt64Array.
GArrowFloatArrayBuilder is the class to creating a new GArrowFloatArray.
GArrowDoubleArrayBuilder is the class to create a new GArrowDoubleArray.
GArrowBinaryArrayBuilder is the class to create a new GArrowBinaryArray.
GArrowStringArrayBuilder is the class to create a new GArrowStringArray.
GArrowDate32ArrayBuilder is the class to create a new GArrowDate32Array.
GArrowDate64ArrayBuilder is the class to create a new GArrowDate64Array.
GArrowTimestampArrayBuilder is the class to create a new GArrowTimestampArray.
GArrowTime32ArrayBuilder is the class to create a new GArrowTime32Array.
GArrowTime64ArrayBuilder is the class to create a new GArrowTime64Array.
GArrowListArrayBuilder is the class to create a new GArrowListArray.
GArrowStructArrayBuilder is the class to create a new GArrowStructArray.
GArrowArray * garrow_array_builder_finish (GArrowArrayBuilder *builder
,GError **error
);
GArrowBooleanArrayBuilder *
garrow_boolean_array_builder_new (void
);
gboolean garrow_boolean_array_builder_append (GArrowBooleanArrayBuilder *builder
,gboolean value
,GError **error
);
gboolean garrow_boolean_array_builder_append_null (GArrowBooleanArrayBuilder *builder
,GError **error
);
GArrowIntArrayBuilder *
garrow_int_array_builder_new (void
);
Since 0.6.0
gboolean garrow_int_array_builder_append (GArrowIntArrayBuilder *builder
,gint64 value
,GError **error
);
Since 0.6.0
gboolean garrow_int_array_builder_append_null (GArrowIntArrayBuilder *builder
,GError **error
);
Since 0.6.0
gboolean garrow_int8_array_builder_append (GArrowInt8ArrayBuilder *builder
,gint8 value
,GError **error
);
gboolean garrow_int8_array_builder_append_null (GArrowInt8ArrayBuilder *builder
,GError **error
);
gboolean garrow_uint8_array_builder_append (GArrowUInt8ArrayBuilder *builder
,guint8 value
,GError **error
);
gboolean garrow_uint8_array_builder_append_null (GArrowUInt8ArrayBuilder *builder
,GError **error
);
gboolean garrow_int16_array_builder_append (GArrowInt16ArrayBuilder *builder
,gint16 value
,GError **error
);
gboolean garrow_int16_array_builder_append_null (GArrowInt16ArrayBuilder *builder
,GError **error
);
GArrowUInt16ArrayBuilder *
garrow_uint16_array_builder_new (void
);
gboolean garrow_uint16_array_builder_append (GArrowUInt16ArrayBuilder *builder
,guint16 value
,GError **error
);
gboolean garrow_uint16_array_builder_append_null (GArrowUInt16ArrayBuilder *builder
,GError **error
);
gboolean garrow_int32_array_builder_append (GArrowInt32ArrayBuilder *builder
,gint32 value
,GError **error
);
gboolean garrow_int32_array_builder_append_null (GArrowInt32ArrayBuilder *builder
,GError **error
);
GArrowUInt32ArrayBuilder *
garrow_uint32_array_builder_new (void
);
gboolean garrow_uint32_array_builder_append (GArrowUInt32ArrayBuilder *builder
,guint32 value
,GError **error
);
gboolean garrow_uint32_array_builder_append_null (GArrowUInt32ArrayBuilder *builder
,GError **error
);
gboolean garrow_int64_array_builder_append (GArrowInt64ArrayBuilder *builder
,gint64 value
,GError **error
);
gboolean garrow_int64_array_builder_append_null (GArrowInt64ArrayBuilder *builder
,GError **error
);
GArrowUInt64ArrayBuilder *
garrow_uint64_array_builder_new (void
);
gboolean garrow_uint64_array_builder_append (GArrowUInt64ArrayBuilder *builder
,guint64 value
,GError **error
);
gboolean garrow_uint64_array_builder_append_null (GArrowUInt64ArrayBuilder *builder
,GError **error
);
gboolean garrow_float_array_builder_append (GArrowFloatArrayBuilder *builder
,gfloat value
,GError **error
);
gboolean garrow_float_array_builder_append_null (GArrowFloatArrayBuilder *builder
,GError **error
);
GArrowDoubleArrayBuilder *
garrow_double_array_builder_new (void
);
gboolean garrow_double_array_builder_append (GArrowDoubleArrayBuilder *builder
,gdouble value
,GError **error
);
gboolean garrow_double_array_builder_append_null (GArrowDoubleArrayBuilder *builder
,GError **error
);
GArrowBinaryArrayBuilder *
garrow_binary_array_builder_new (void
);
gboolean garrow_binary_array_builder_append (GArrowBinaryArrayBuilder *builder
,const guint8 *value
,gint32 length
,GError **error
);
gboolean garrow_binary_array_builder_append_null (GArrowBinaryArrayBuilder *builder
,GError **error
);
GArrowStringArrayBuilder *
garrow_string_array_builder_new (void
);
gboolean garrow_string_array_builder_append (GArrowStringArrayBuilder *builder
,const gchar *value
,GError **error
);
GArrowDate32ArrayBuilder *
garrow_date32_array_builder_new (void
);
Since 0.7.0
gboolean garrow_date32_array_builder_append (GArrowDate32ArrayBuilder *builder
,gint32 value
,GError **error
);
builder |
||
value |
The number of days since UNIX epoch in signed 32bit integer. |
|
error |
Return location for a GError or |
[nullable] |
Since 0.7.0
gboolean garrow_date32_array_builder_append_null (GArrowDate32ArrayBuilder *builder
,GError **error
);
Since 0.7.0
GArrowDate64ArrayBuilder *
garrow_date64_array_builder_new (void
);
Since 0.7.0
gboolean garrow_date64_array_builder_append (GArrowDate64ArrayBuilder *builder
,gint64 value
,GError **error
);
builder |
||
value |
The number of milliseconds since UNIX epoch in signed 64bit integer. |
|
error |
Return location for a GError or |
[nullable] |
Since 0.7.0
gboolean garrow_date64_array_builder_append_null (GArrowDate64ArrayBuilder *builder
,GError **error
);
Since 0.7.0
GArrowTimestampArrayBuilder *
garrow_timestamp_array_builder_new (GArrowTimestampDataType *data_type
);
Since 0.7.0
gboolean garrow_timestamp_array_builder_append (GArrowTimestampArrayBuilder *builder
,gint64 value
,GError **error
);
builder |
||
value |
The number of milliseconds since UNIX epoch in signed 64bit integer. |
|
error |
Return location for a GError or |
[nullable] |
Since 0.7.0
gboolean garrow_timestamp_array_builder_append_null (GArrowTimestampArrayBuilder *builder
,GError **error
);
Since 0.7.0
GArrowTime32ArrayBuilder *
garrow_time32_array_builder_new (GArrowTime32DataType *data_type
);
Since 0.7.0
gboolean garrow_time32_array_builder_append (GArrowTime32ArrayBuilder *builder
,gint32 value
,GError **error
);
builder |
||
value |
The number of days since UNIX epoch in signed 32bit integer. |
|
error |
Return location for a GError or |
[nullable] |
Since 0.7.0
gboolean garrow_time32_array_builder_append_null (GArrowTime32ArrayBuilder *builder
,GError **error
);
Since 0.7.0
GArrowTime64ArrayBuilder *
garrow_time64_array_builder_new (GArrowTime64DataType *data_type
);
Since 0.7.0
gboolean garrow_time64_array_builder_append (GArrowTime64ArrayBuilder *builder
,gint64 value
,GError **error
);
builder |
||
value |
The number of milliseconds since UNIX epoch in signed 64bit integer. |
|
error |
Return location for a GError or |
[nullable] |
Since 0.7.0
gboolean garrow_time64_array_builder_append_null (GArrowTime64ArrayBuilder *builder
,GError **error
);
Since 0.7.0
GArrowListArrayBuilder * garrow_list_array_builder_new (GArrowListDataType *data_type
,GError **error
);
data_type |
A GArrowListDataType for value. |
|
error |
Return location for a GError or |
[nullable] |
gboolean garrow_list_array_builder_append (GArrowListArrayBuilder *builder
,GError **error
);
TRUE
on success, FALSE
if there was an error.
It appends a new list element. To append a new list element, you
need to call this function then append list element values to
value_builder
. value_builder
is the GArrowArrayBuilder
specified to constructor. You can get value_builder
by
garrow_list_array_builder_get_value_builder()
.
GArrowInt8ArrayBuilder *value_builder; GArrowListArrayBuilder *builder; value_builder = garrow_int8_array_builder_new(); builder = garrow_list_array_builder_new(value_builder, NULL); // Start 0th list element: [1, 0, -1] garrow_list_array_builder_append(builder, NULL); garrow_int8_array_builder_append(value_builder, 1); garrow_int8_array_builder_append(value_builder, 0); garrow_int8_array_builder_append(value_builder, -1); // Start 1st list element: [-29, 29] garrow_list_array_builder_append(builder, NULL); garrow_int8_array_builder_append(value_builder, -29); garrow_int8_array_builder_append(value_builder, 29); { // [[1, 0, -1], [-29, 29]] GArrowArray *array = garrow_array_builder_finish(builder); // Now, builder is needless. g_object_unref(builder); g_object_unref(value_builder); // Use array... g_object_unref(array); }
gboolean garrow_list_array_builder_append_null (GArrowListArrayBuilder *builder
,GError **error
);
GArrowArrayBuilder *
garrow_list_array_builder_get_value_builder
(GArrowListArrayBuilder *builder
);
GArrowStructArrayBuilder * garrow_struct_array_builder_new (GArrowStructDataType *data_type
,GError **error
);
data_type |
GArrowStructDataType for the struct. |
|
error |
Return location for a GError or |
[nullable] |
gboolean garrow_struct_array_builder_append (GArrowStructArrayBuilder *builder
,GError **error
);
TRUE
on success, FALSE
if there was an error.
It appends a new struct element. To append a new struct element,
you need to call this function then append struct element field
values to all field_builder
s. field_value
s are the
GArrowArrayBuilder specified to constructor. You can get
field_builder
by garrow_struct_array_builder_get_field_builder()
or garrow_struct_array_builder_get_field_builders()
.
// TODO
gboolean garrow_struct_array_builder_append_null (GArrowStructArrayBuilder *builder
,GError **error
);
GArrowArrayBuilder * garrow_struct_array_builder_get_field_builder (GArrowStructArrayBuilder *builder
,gint i
);
GList *
garrow_struct_array_builder_get_field_builders
(GArrowStructArrayBuilder *builder
);
struct GArrowBooleanArrayBuilderClass { GArrowArrayBuilderClass parent_class; };
struct GArrowIntArrayBuilderClass { GArrowArrayBuilderClass parent_class; };
struct GArrowInt8ArrayBuilderClass { GArrowArrayBuilderClass parent_class; };
struct GArrowUInt8ArrayBuilderClass { GArrowArrayBuilderClass parent_class; };
struct GArrowInt16ArrayBuilderClass { GArrowArrayBuilderClass parent_class; };
struct GArrowUInt16ArrayBuilderClass { GArrowArrayBuilderClass parent_class; };
struct GArrowInt32ArrayBuilderClass { GArrowArrayBuilderClass parent_class; };
struct GArrowUInt32ArrayBuilderClass { GArrowArrayBuilderClass parent_class; };
struct GArrowInt64ArrayBuilderClass { GArrowArrayBuilderClass parent_class; };
struct GArrowUInt64ArrayBuilderClass { GArrowArrayBuilderClass parent_class; };
struct GArrowFloatArrayBuilderClass { GArrowArrayBuilderClass parent_class; };
struct GArrowDoubleArrayBuilderClass { GArrowArrayBuilderClass parent_class; };
struct GArrowBinaryArrayBuilderClass { GArrowArrayBuilderClass parent_class; };
struct GArrowStringArrayBuilderClass { GArrowBinaryArrayBuilderClass parent_class; };
struct GArrowDate32ArrayBuilderClass { GArrowArrayBuilderClass parent_class; };
struct GArrowDate64ArrayBuilderClass { GArrowArrayBuilderClass parent_class; };
struct GArrowTimestampArrayBuilder;
It wraps arrow::TimestampBuilder
.
struct GArrowTimestampArrayBuilderClass { GArrowArrayBuilderClass parent_class; };
struct GArrowTime32ArrayBuilderClass { GArrowArrayBuilderClass parent_class; };
struct GArrowTime64ArrayBuilderClass { GArrowArrayBuilderClass parent_class; };
struct GArrowListArrayBuilderClass { GArrowArrayBuilderClass parent_class; };