Top | ![]() |
![]() |
![]() |
![]() |
#define | GARROW_TYPE_ARRAY_BUILDER |
struct | GArrowArrayBuilderClass |
struct | GArrowBooleanArrayBuilder |
struct | GArrowIntArrayBuilder |
#define | GARROW_TYPE_UINT_ARRAY_BUILDER |
struct | GArrowUIntArrayBuilderClass |
struct | GArrowInt8ArrayBuilder |
struct | GArrowUInt8ArrayBuilder |
struct | GArrowInt16ArrayBuilder |
struct | GArrowUInt16ArrayBuilder |
struct | GArrowInt32ArrayBuilder |
struct | GArrowUInt32ArrayBuilder |
struct | GArrowInt64ArrayBuilder |
struct | GArrowUInt64ArrayBuilder |
struct | GArrowFloatArrayBuilder |
struct | GArrowDoubleArrayBuilder |
struct | GArrowBinaryArrayBuilder |
struct | GArrowStringArrayBuilder |
struct | GArrowDate32ArrayBuilder |
struct | GArrowDate64ArrayBuilder |
struct | GArrowTimestampArrayBuilder |
struct | GArrowTime32ArrayBuilder |
struct | GArrowTime64ArrayBuilder |
struct | GArrowListArrayBuilder |
struct | GArrowStructArrayBuilder |
#define | GARROW_TYPE_DECIMAL128_ARRAY_BUILDER |
struct | GArrowDecimal128ArrayBuilderClass |
GObject ╰── 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.
GArrowUIntArrayBuilder is the class to create a new unsigned integer array. Unsigned integer size is automatically chosen. It's recommend that you use this builder instead of specific unsigned integer size builder such as GArrowUInt8ArrayBuilder.
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.
GArrowDecimal128ArrayBuilder is the class to create a new GArrowDecimal128Array.
void
garrow_array_builder_release_ownership
(GArrowArrayBuilder *builder
);
Release ownership of arrow::ArrayBuilder
in builder
.
[skip]
Since: 0.8.0
GArrowDataType *
garrow_array_builder_get_value_data_type
(GArrowArrayBuilder *builder
);
Since: 0.9.0
GArrowType
garrow_array_builder_get_value_type (GArrowArrayBuilder *builder
);
Since: 0.9.0
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_values (GArrowBooleanArrayBuilder *builder
,const gboolean *values
,gint64 values_length
,const gboolean *is_valids
,gint64 is_valids_length
,GError **error
);
Append multiple values at once. It's more efficient than multiple
and append()
calls.append_null()
builder |
||
values |
The array of boolean. |
[array length=values_length] |
values_length |
The length of |
|
is_valids |
The array of
boolean that shows whether the Nth value is valid or not. If the
Nth |
[nullable][array length=is_valids_length] |
is_valids_length |
The length of |
|
error |
Return location for a GError or |
[nullable] |
Since: 0.8.0
gboolean garrow_boolean_array_builder_append_null (GArrowBooleanArrayBuilder *builder
,GError **error
);
gboolean garrow_boolean_array_builder_append_nulls (GArrowBooleanArrayBuilder *builder
,gint64 n
,GError **error
);
Append multiple nulls at once. It's more efficient than multiple
calls.append_null()
builder |
||
n |
The number of null values to be appended. |
|
error |
Return location for a GError or |
[nullable] |
Since: 0.8.0
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_values (GArrowIntArrayBuilder *builder
,const gint64 *values
,gint64 values_length
,const gboolean *is_valids
,gint64 is_valids_length
,GError **error
);
Append multiple values at once. It's more efficient than multiple
and append()
calls.append_null()
builder |
||
values |
The array of int. |
[array length=values_length] |
values_length |
The length of |
|
is_valids |
The array of
boolean that shows whether the Nth value is valid or not. If the
Nth |
[nullable][array length=is_valids_length] |
is_valids_length |
The length of |
|
error |
Return location for a GError or |
[nullable] |
Since: 0.8.0
gboolean garrow_int_array_builder_append_null (GArrowIntArrayBuilder *builder
,GError **error
);
Since: 0.6.0
gboolean garrow_int_array_builder_append_nulls (GArrowIntArrayBuilder *builder
,gint64 n
,GError **error
);
Append multiple nulls at once. It's more efficient than multiple
calls.append_null()
builder |
||
n |
The number of null values to be appended. |
|
error |
Return location for a GError or |
[nullable] |
Since: 0.8.0
GArrowUIntArrayBuilder *
garrow_uint_array_builder_new (void
);
Since: 0.8.0
gboolean garrow_uint_array_builder_append (GArrowUIntArrayBuilder *builder
,guint64 value
,GError **error
);
builder |
A GArrowUIntArrayBuilder. |
|
value |
A unsigned int value. |
|
error |
Return location for a GError or |
[nullable] |
Since: 0.8.0
gboolean garrow_uint_array_builder_append_values (GArrowUIntArrayBuilder *builder
,const guint64 *values
,gint64 values_length
,const gboolean *is_valids
,gint64 is_valids_length
,GError **error
);
Append multiple values at once. It's more efficient than multiple
and append()
calls.append_null()
builder |
A GArrowUIntArrayBuilder. |
|
values |
The array of unsigned int. |
[array length=values_length] |
values_length |
The length of |
|
is_valids |
The array of
boolean that shows whether the Nth value is valid or not. If the
Nth |
[nullable][array length=is_valids_length] |
is_valids_length |
The length of |
|
error |
Return location for a GError or |
[nullable] |
Since: 0.8.0
gboolean garrow_uint_array_builder_append_null (GArrowUIntArrayBuilder *builder
,GError **error
);
Since: 0.8.0
gboolean garrow_uint_array_builder_append_nulls (GArrowUIntArrayBuilder *builder
,gint64 n
,GError **error
);
Append multiple nulls at once. It's more efficient than multiple
calls.append_null()
builder |
A GArrowUIntArrayBuilder. |
|
n |
The number of null values to be appended. |
|
error |
Return location for a GError or |
[nullable] |
Since: 0.8.0
gboolean garrow_int8_array_builder_append (GArrowInt8ArrayBuilder *builder
,gint8 value
,GError **error
);
gboolean garrow_int8_array_builder_append_values (GArrowInt8ArrayBuilder *builder
,const gint8 *values
,gint64 values_length
,const gboolean *is_valids
,gint64 is_valids_length
,GError **error
);
Append multiple values at once. It's more efficient than multiple
and append()
calls.append_null()
builder |
||
values |
The array of int8. |
[array length=values_length] |
values_length |
The length of |
|
is_valids |
The array of
boolean that shows whether the Nth value is valid or not. If the
Nth |
[nullable][array length=is_valids_length] |
is_valids_length |
The length of |
|
error |
Return location for a GError or |
[nullable] |
Since: 0.8.0
gboolean garrow_int8_array_builder_append_null (GArrowInt8ArrayBuilder *builder
,GError **error
);
gboolean garrow_int8_array_builder_append_nulls (GArrowInt8ArrayBuilder *builder
,gint64 n
,GError **error
);
Append multiple nulls at once. It's more efficient than multiple
calls.append_null()
builder |
||
n |
The number of null values to be appended. |
|
error |
Return location for a GError or |
[nullable] |
Since: 0.8.0
gboolean garrow_uint8_array_builder_append (GArrowUInt8ArrayBuilder *builder
,guint8 value
,GError **error
);
gboolean garrow_uint8_array_builder_append_values (GArrowUInt8ArrayBuilder *builder
,const guint8 *values
,gint64 values_length
,const gboolean *is_valids
,gint64 is_valids_length
,GError **error
);
Append multiple values at once. It's more efficient than multiple
and append()
calls.append_null()
builder |
||
values |
The array of uint8. |
[array length=values_length] |
values_length |
The length of |
|
is_valids |
The array of
boolean that shows whether the Nth value is valid or not. If the
Nth |
[nullable][array length=is_valids_length] |
is_valids_length |
The length of |
|
error |
Return location for a GError or |
[nullable] |
Since: 0.8.0
gboolean garrow_uint8_array_builder_append_null (GArrowUInt8ArrayBuilder *builder
,GError **error
);
gboolean garrow_uint8_array_builder_append_nulls (GArrowUInt8ArrayBuilder *builder
,gint64 n
,GError **error
);
Append multiple nulls at once. It's more efficient than multiple
calls.append_null()
builder |
||
n |
The number of null values to be appended. |
|
error |
Return location for a GError or |
[nullable] |
Since: 0.8.0
gboolean garrow_int16_array_builder_append (GArrowInt16ArrayBuilder *builder
,gint16 value
,GError **error
);
gboolean garrow_int16_array_builder_append_values (GArrowInt16ArrayBuilder *builder
,const gint16 *values
,gint64 values_length
,const gboolean *is_valids
,gint64 is_valids_length
,GError **error
);
Append multiple values at once. It's more efficient than multiple
and append()
calls.append_null()
builder |
||
values |
The array of int16. |
[array length=values_length] |
values_length |
The length of |
|
is_valids |
The array of
boolean that shows whether the Nth value is valid or not. If the
Nth |
[nullable][array length=is_valids_length] |
is_valids_length |
The length of |
|
error |
Return location for a GError or |
[nullable] |
Since: 0.8.0
gboolean garrow_int16_array_builder_append_null (GArrowInt16ArrayBuilder *builder
,GError **error
);
gboolean garrow_int16_array_builder_append_nulls (GArrowInt16ArrayBuilder *builder
,gint64 n
,GError **error
);
Append multiple nulls at once. It's more efficient than multiple
calls.append_null()
builder |
||
n |
The number of null values to be appended. |
|
error |
Return location for a GError or |
[nullable] |
Since: 0.8.0
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_values (GArrowUInt16ArrayBuilder *builder
,const guint16 *values
,gint64 values_length
,const gboolean *is_valids
,gint64 is_valids_length
,GError **error
);
Append multiple values at once. It's more efficient than multiple
and append()
calls.append_null()
builder |
||
values |
The array of uint16. |
[array length=values_length] |
values_length |
The length of |
|
is_valids |
The array of
boolean that shows whether the Nth value is valid or not. If the
Nth |
[nullable][array length=is_valids_length] |
is_valids_length |
The length of |
|
error |
Return location for a GError or |
[nullable] |
Since: 0.8.0
gboolean garrow_uint16_array_builder_append_null (GArrowUInt16ArrayBuilder *builder
,GError **error
);
gboolean garrow_uint16_array_builder_append_nulls (GArrowUInt16ArrayBuilder *builder
,gint64 n
,GError **error
);
Append multiple nulls at once. It's more efficient than multiple
calls.append_null()
builder |
||
n |
The number of null values to be appended. |
|
error |
Return location for a GError or |
[nullable] |
Since: 0.8.0
gboolean garrow_int32_array_builder_append (GArrowInt32ArrayBuilder *builder
,gint32 value
,GError **error
);
gboolean garrow_int32_array_builder_append_values (GArrowInt32ArrayBuilder *builder
,const gint32 *values
,gint64 values_length
,const gboolean *is_valids
,gint64 is_valids_length
,GError **error
);
Append multiple values at once. It's more efficient than multiple
and append()
calls.append_null()
builder |
||
values |
The array of int32. |
[array length=values_length] |
values_length |
The length of |
|
is_valids |
The array of
boolean that shows whether the Nth value is valid or not. If the
Nth |
[nullable][array length=is_valids_length] |
is_valids_length |
The length of |
|
error |
Return location for a GError or |
[nullable] |
Since: 0.8.0
gboolean garrow_int32_array_builder_append_null (GArrowInt32ArrayBuilder *builder
,GError **error
);
gboolean garrow_int32_array_builder_append_nulls (GArrowInt32ArrayBuilder *builder
,gint64 n
,GError **error
);
Append multiple nulls at once. It's more efficient than multiple
calls.append_null()
builder |
||
n |
The number of null values to be appended. |
|
error |
Return location for a GError or |
[nullable] |
Since: 0.8.0
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_values (GArrowUInt32ArrayBuilder *builder
,const guint32 *values
,gint64 values_length
,const gboolean *is_valids
,gint64 is_valids_length
,GError **error
);
Append multiple values at once. It's more efficient than multiple
and append()
calls.append_null()
builder |
||
values |
The array of uint32. |
[array length=values_length] |
values_length |
The length of |
|
is_valids |
The array of
boolean that shows whether the Nth value is valid or not. If the
Nth |
[nullable][array length=is_valids_length] |
is_valids_length |
The length of |
|
error |
Return location for a GError or |
[nullable] |
Since: 0.8.0
gboolean garrow_uint32_array_builder_append_null (GArrowUInt32ArrayBuilder *builder
,GError **error
);
gboolean garrow_uint32_array_builder_append_nulls (GArrowUInt32ArrayBuilder *builder
,gint64 n
,GError **error
);
Append multiple nulls at once. It's more efficient than multiple
calls.append_null()
builder |
||
n |
The number of null values to be appended. |
|
error |
Return location for a GError or |
[nullable] |
Since: 0.8.0
gboolean garrow_int64_array_builder_append (GArrowInt64ArrayBuilder *builder
,gint64 value
,GError **error
);
gboolean garrow_int64_array_builder_append_values (GArrowInt64ArrayBuilder *builder
,const gint64 *values
,gint64 values_length
,const gboolean *is_valids
,gint64 is_valids_length
,GError **error
);
Append multiple values at once. It's more efficient than multiple
and append()
calls.append_null()
builder |
||
values |
The array of int64. |
[array length=values_length] |
values_length |
The length of |
|
is_valids |
The array of
boolean that shows whether the Nth value is valid or not. If the
Nth |
[nullable][array length=is_valids_length] |
is_valids_length |
The length of |
|
error |
Return location for a GError or |
[nullable] |
Since: 0.8.0
gboolean garrow_int64_array_builder_append_null (GArrowInt64ArrayBuilder *builder
,GError **error
);
gboolean garrow_int64_array_builder_append_nulls (GArrowInt64ArrayBuilder *builder
,gint64 n
,GError **error
);
Append multiple nulls at once. It's more efficient than multiple
calls.append_null()
builder |
||
n |
The number of null values to be appended. |
|
error |
Return location for a GError or |
[nullable] |
Since: 0.8.0
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_values (GArrowUInt64ArrayBuilder *builder
,const guint64 *values
,gint64 values_length
,const gboolean *is_valids
,gint64 is_valids_length
,GError **error
);
Append multiple values at once. It's more efficient than multiple
and append()
calls.append_null()
builder |
||
values |
The array of uint64. |
[array length=values_length] |
values_length |
The length of |
|
is_valids |
The array of
boolean that shows whether the Nth value is valid or not. If the
Nth |
[nullable][array length=is_valids_length] |
is_valids_length |
The length of |
|
error |
Return location for a GError or |
[nullable] |
Since: 0.8.0
gboolean garrow_uint64_array_builder_append_null (GArrowUInt64ArrayBuilder *builder
,GError **error
);
gboolean garrow_uint64_array_builder_append_nulls (GArrowUInt64ArrayBuilder *builder
,gint64 n
,GError **error
);
Append multiple nulls at once. It's more efficient than multiple
calls.append_null()
builder |
||
n |
The number of null values to be appended. |
|
error |
Return location for a GError or |
[nullable] |
Since: 0.8.0
gboolean garrow_float_array_builder_append (GArrowFloatArrayBuilder *builder
,gfloat value
,GError **error
);
gboolean garrow_float_array_builder_append_values (GArrowFloatArrayBuilder *builder
,const gfloat *values
,gint64 values_length
,const gboolean *is_valids
,gint64 is_valids_length
,GError **error
);
Append multiple values at once. It's more efficient than multiple
and append()
calls.append_null()
builder |
||
values |
The array of float. |
[array length=values_length] |
values_length |
The length of |
|
is_valids |
The array of
boolean that shows whether the Nth value is valid or not. If the
Nth |
[nullable][array length=is_valids_length] |
is_valids_length |
The length of |
|
error |
Return location for a GError or |
[nullable] |
Since: 0.8.0
gboolean garrow_float_array_builder_append_null (GArrowFloatArrayBuilder *builder
,GError **error
);
gboolean garrow_float_array_builder_append_nulls (GArrowFloatArrayBuilder *builder
,gint64 n
,GError **error
);
Append multiple nulls at once. It's more efficient than multiple
calls.append_null()
builder |
||
n |
The number of null values to be appended. |
|
error |
Return location for a GError or |
[nullable] |
Since: 0.8.0
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_values (GArrowDoubleArrayBuilder *builder
,const gdouble *values
,gint64 values_length
,const gboolean *is_valids
,gint64 is_valids_length
,GError **error
);
Append multiple values at once. It's more efficient than multiple
and append()
calls.append_null()
builder |
||
values |
The array of double. |
[array length=values_length] |
values_length |
The length of |
|
is_valids |
The array of
boolean that shows whether the Nth value is valid or not. If the
Nth |
[nullable][array length=is_valids_length] |
is_valids_length |
The length of |
|
error |
Return location for a GError or |
[nullable] |
Since: 0.8.0
gboolean garrow_double_array_builder_append_null (GArrowDoubleArrayBuilder *builder
,GError **error
);
gboolean garrow_double_array_builder_append_nulls (GArrowDoubleArrayBuilder *builder
,gint64 n
,GError **error
);
Append multiple nulls at once. It's more efficient than multiple
calls.append_null()
builder |
||
n |
The number of null values to be appended. |
|
error |
Return location for a GError or |
[nullable] |
Since: 0.8.0
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
);
gboolean garrow_string_array_builder_append_values (GArrowStringArrayBuilder *builder
,const gchar **values
,gint64 values_length
,const gboolean *is_valids
,gint64 is_valids_length
,GError **error
);
Append multiple values at once. It's more efficient than multiple
and append()
calls.append_null()
builder |
||
values |
The array of strings. |
[array length=values_length] |
values_length |
The length of |
|
is_valids |
The array of
boolean that shows whether the Nth value is valid or not. If the
Nth |
[nullable][array length=is_valids_length] |
is_valids_length |
The length of |
|
error |
Return location for a GError or |
[nullable] |
Since: 0.10.0
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_values (GArrowDate32ArrayBuilder *builder
,const gint32 *values
,gint64 values_length
,const gboolean *is_valids
,gint64 is_valids_length
,GError **error
);
Append multiple values at once. It's more efficient than multiple
and append()
calls.append_null()
builder |
||
values |
The array of the number of days since UNIX epoch in signed 32bit integer. |
[array length=values_length] |
values_length |
The length of |
|
is_valids |
The array of
boolean that shows whether the Nth value is valid or not. If the
Nth |
[nullable][array length=is_valids_length] |
is_valids_length |
The length of |
|
error |
Return location for a GError or |
[nullable] |
Since: 0.8.0
gboolean garrow_date32_array_builder_append_null (GArrowDate32ArrayBuilder *builder
,GError **error
);
Since: 0.7.0
gboolean garrow_date32_array_builder_append_nulls (GArrowDate32ArrayBuilder *builder
,gint64 n
,GError **error
);
Append multiple nulls at once. It's more efficient than multiple
calls.append_null()
builder |
||
n |
The number of null values to be appended. |
|
error |
Return location for a GError or |
[nullable] |
Since: 0.8.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_values (GArrowDate64ArrayBuilder *builder
,const gint64 *values
,gint64 values_length
,const gboolean *is_valids
,gint64 is_valids_length
,GError **error
);
Append multiple values at once. It's more efficient than multiple
and append()
calls.append_null()
builder |
||
values |
The array of the number of milliseconds since UNIX epoch in signed 64bit integer. |
[array length=values_length] |
values_length |
The length of |
|
is_valids |
The array of
boolean that shows whether the Nth value is valid or not. If the
Nth |
[nullable][array length=is_valids_length] |
is_valids_length |
The length of |
|
error |
Return location for a GError or |
[nullable] |
Since: 0.8.0
gboolean garrow_date64_array_builder_append_null (GArrowDate64ArrayBuilder *builder
,GError **error
);
Since: 0.7.0
gboolean garrow_date64_array_builder_append_nulls (GArrowDate64ArrayBuilder *builder
,gint64 n
,GError **error
);
Append multiple nulls at once. It's more efficient than multiple
calls.append_null()
builder |
||
n |
The number of null values to be appended. |
|
error |
Return location for a GError or |
[nullable] |
Since: 0.8.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_values (GArrowTimestampArrayBuilder *builder
,const gint64 *values
,gint64 values_length
,const gboolean *is_valids
,gint64 is_valids_length
,GError **error
);
Append multiple values at once. It's more efficient than multiple
and append()
calls.append_null()
builder |
||
values |
The array of the number of milliseconds since UNIX epoch in signed 64bit integer. |
[array length=values_length] |
values_length |
The length of |
|
is_valids |
The array of
boolean that shows whether the Nth value is valid or not. If the
Nth |
[nullable][array length=is_valids_length] |
is_valids_length |
The length of |
|
error |
Return location for a GError or |
[nullable] |
Since: 0.8.0
gboolean garrow_timestamp_array_builder_append_null (GArrowTimestampArrayBuilder *builder
,GError **error
);
Since: 0.7.0
gboolean garrow_timestamp_array_builder_append_nulls (GArrowTimestampArrayBuilder *builder
,gint64 n
,GError **error
);
Append multiple nulls at once. It's more efficient than multiple
calls.append_null()
builder |
||
n |
The number of null values to be appended. |
|
error |
Return location for a GError or |
[nullable] |
Since: 0.8.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_values (GArrowTime32ArrayBuilder *builder
,const gint32 *values
,gint64 values_length
,const gboolean *is_valids
,gint64 is_valids_length
,GError **error
);
Append multiple values at once. It's more efficient than multiple
and append()
calls.append_null()
builder |
||
values |
The array of the number of days since UNIX epoch in signed 32bit integer. |
[array length=values_length] |
values_length |
The length of |
|
is_valids |
The array of
boolean that shows whether the Nth value is valid or not. If the
Nth |
[nullable][array length=is_valids_length] |
is_valids_length |
The length of |
|
error |
Return location for a GError or |
[nullable] |
Since: 0.8.0
gboolean garrow_time32_array_builder_append_null (GArrowTime32ArrayBuilder *builder
,GError **error
);
Since: 0.7.0
gboolean garrow_time32_array_builder_append_nulls (GArrowTime32ArrayBuilder *builder
,gint64 n
,GError **error
);
Append multiple nulls at once. It's more efficient than multiple
calls.append_null()
builder |
||
n |
The number of null values to be appended. |
|
error |
Return location for a GError or |
[nullable] |
Since: 0.8.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_values (GArrowTime64ArrayBuilder *builder
,const gint64 *values
,gint64 values_length
,const gboolean *is_valids
,gint64 is_valids_length
,GError **error
);
Append multiple values at once. It's more efficient than multiple
and append()
calls.append_null()
builder |
||
values |
The array of the number of milliseconds since UNIX epoch in signed 64bit integer. |
[array length=values_length] |
values_length |
The length of |
|
is_valids |
The array of
boolean that shows whether the Nth value is valid or not. If the
Nth |
[nullable][array length=is_valids_length] |
is_valids_length |
The length of |
|
error |
Return location for a GError or |
[nullable] |
Since: 0.8.0
gboolean garrow_time64_array_builder_append_null (GArrowTime64ArrayBuilder *builder
,GError **error
);
Since: 0.7.0
gboolean garrow_time64_array_builder_append_nulls (GArrowTime64ArrayBuilder *builder
,gint64 n
,GError **error
);
Append multiple nulls at once. It's more efficient than multiple
calls.append_null()
builder |
||
n |
The number of null values to be appended. |
|
error |
Return location for a GError or |
[nullable] |
Since: 0.8.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()
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
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()
.
1 |
// 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
);
GArrowDecimal128ArrayBuilder *
garrow_decimal128_array_builder_new (GArrowDecimalDataType *data_type
);
Since: 0.10.0
gboolean garrow_decimal128_array_builder_append (GArrowDecimal128ArrayBuilder *builder
,GArrowDecimal128 *value
,GError **error
);
builder |
A GArrowDecimal128ArrayBuilder. |
|
value |
A decimal value. |
|
error |
Return location for a GError or |
[nullable] |
Since: 0.10.0
#define GARROW_TYPE_UINT_ARRAY_BUILDER (garrow_uint_array_builder_get_type())
struct GArrowUIntArrayBuilderClass { GArrowArrayBuilderClass parent_class; };
struct GArrowTimestampArrayBuilder;
It wraps arrow::TimestampBuilder
.
#define GARROW_TYPE_DECIMAL128_ARRAY_BUILDER (garrow_decimal128_array_builder_get_type())