Top | ![]() |
![]() |
![]() |
![]() |
struct | GArrowArray |
struct | GArrowNullArray |
struct | GArrowNullArrayClass |
struct | GArrowPrimitiveArray |
struct | GArrowPrimitiveArrayClass |
struct | GArrowBooleanArray |
struct | GArrowBooleanArrayClass |
struct | GArrowInt8Array |
struct | GArrowInt8ArrayClass |
struct | GArrowUInt8Array |
struct | GArrowUInt8ArrayClass |
struct | GArrowInt16Array |
struct | GArrowInt16ArrayClass |
struct | GArrowUInt16Array |
struct | GArrowUInt16ArrayClass |
struct | GArrowInt32Array |
struct | GArrowInt32ArrayClass |
struct | GArrowUInt32Array |
struct | GArrowUInt32ArrayClass |
struct | GArrowInt64Array |
struct | GArrowInt64ArrayClass |
struct | GArrowUInt64Array |
struct | GArrowUInt64ArrayClass |
struct | GArrowFloatArray |
struct | GArrowFloatArrayClass |
struct | GArrowDoubleArray |
struct | GArrowDoubleArrayClass |
struct | GArrowBinaryArray |
struct | GArrowBinaryArrayClass |
struct | GArrowStringArray |
struct | GArrowStringArrayClass |
struct | GArrowListArray |
struct | GArrowListArrayClass |
struct | GArrowStructArray |
struct | GArrowStructArrayClass |
GObject ╰── GArrowArray ├── GArrowBinaryArray │ ╰── GArrowStringArray ├── GArrowPrimitiveArray │ ├── GArrowBooleanArray │ ├── GArrowDoubleArray │ ├── GArrowFloatArray │ ├── GArrowInt16Array │ ├── GArrowInt32Array │ ├── GArrowInt64Array │ ├── GArrowInt8Array │ ├── GArrowUInt16Array │ ├── GArrowUInt32Array │ ├── GArrowUInt64Array │ ╰── GArrowUInt8Array ├── GArrowListArray ├── GArrowNullArray ╰── GArrowStructArray
GArrowArray is a base class for all array classes such as GArrowBooleanArray.
All array classes are immutable. You need to use binary data or array builder to create a new array except GArrowNullArray. If you have binary data that uses Arrow format data, you can create a new array with the binary data as GArrowBuffer object. If you don't have binary data, you can use array builder class such as GArrowBooleanArrayBuilder that creates Arrow format data internally and a new array from the data.
GArrowNullArray is a class for null array. It can store zero or more null values. You need to specify an array length to create a new array.
GArrowBooleanArray is a class for binary array. It can store zero or more boolean data. If you don't have Arrow format data, you need to use GArrowBooleanArrayBuilder to create a new array.
GArrowInt8Array is a class for 8-bit integer array. It can store zero or more 8-bit integer data. If you don't have Arrow format data, you need to use GArrowInt8ArrayBuilder to create a new array.
GArrowUInt8Array is a class for 8-bit unsigned integer array. It can store zero or more 8-bit unsigned integer data. If you don't have Arrow format data, you need to use GArrowUInt8ArrayBuilder to create a new array.
GArrowInt16Array is a class for 16-bit integer array. It can store zero or more 16-bit integer data. If you don't have Arrow format data, you need to use GArrowInt16ArrayBuilder to create a new array.
GArrowUInt16Array is a class for 16-bit unsigned integer array. It can store zero or more 16-bit unsigned integer data. If you don't have Arrow format data, you need to use GArrowUInt16ArrayBuilder to create a new array.
GArrowInt32Array is a class for 32-bit integer array. It can store zero or more 32-bit integer data. If you don't have Arrow format data, you need to use GArrowInt32ArrayBuilder to create a new array.
GArrowUInt32Array is a class for 32-bit unsigned integer array. It can store zero or more 32-bit unsigned integer data. If you don't have Arrow format data, you need to use GArrowUInt32ArrayBuilder to create a new array.
GArrowInt64Array is a class for 64-bit integer array. It can store zero or more 64-bit integer data. If you don't have Arrow format data, you need to use GArrowInt64ArrayBuilder to create a new array.
GArrowUInt64Array is a class for 64-bit unsigned integer array. It can store zero or more 64-bit unsigned integer data. If you don't have Arrow format data, you need to use GArrowUInt64ArrayBuilder to create a new array.
GArrowFloatArray is a class for 32-bit floating point array. It can store zero or more 32-bit floating data. If you don't have Arrow format data, you need to use GArrowFloatArrayBuilder to create a new array.
GArrowDoubleArray is a class for 64-bit floating point array. It can store zero or more 64-bit floating data. If you don't have Arrow format data, you need to use GArrowDoubleArrayBuilder to create a new array.
GArrowBinaryArray is a class for binary array. It can store zero or more binary data. If you don't have Arrow format data, you need to use GArrowBinaryArrayBuilder to create a new array.
GArrowStringArray is a class for UTF-8 encoded string array. It can store zero or more UTF-8 encoded string data. If you don't have Arrow format data, you need to use GArrowStringArrayBuilder to create a new array.
GArrowListArray is a class for list array. It can store zero or more list data. If you don't have Arrow format data, you need to use GArrowListArrayBuilder to create a new array.
GArrowStructArray is a class for struct array. It can store zero or more structs. One struct has zero or more fields. If you don't have Arrow format data, you need to use GArrowStructArrayBuilder to create a new array.
gboolean garrow_array_equal (GArrowArray *array
,GArrowArray *other_array
);
Since: 0.4.0
gboolean garrow_array_equal_approx (GArrowArray *array
,GArrowArray *other_array
);
Since: 0.4.0
gboolean garrow_array_equal_range (GArrowArray *array
,gint64 start_index
,GArrowArray *other_array
,gint64 other_start_index
,gint64 end_index
);
array |
A GArrowArray. |
|
start_index |
The start index of |
|
other_array |
A GArrowArray to be compared. |
|
other_start_index |
The start index of |
|
end_index |
The end index of |
Since: 0.4.0
GArrowBuffer *
garrow_array_get_null_bitmap (GArrowArray *array
);
The bitmap that indicates null
value indexes for the array as GArrowBuffer or NULL
when
garrow_array_get_n_nulls()
returns 0.
[transfer full][nullable]
Since: 0.3.0
GArrowDataType *
garrow_array_get_value_data_type (GArrowArray *array
);
Since: 0.3.0
GArrowType
garrow_array_get_value_type (GArrowArray *array
);
Since: 0.3.0
GArrowArray * garrow_array_slice (GArrowArray *array
,gint64 offset
,gint64 length
);
array |
A GArrowArray. |
|
offset |
The offset of sub GArrowArray. |
|
length |
The length of sub GArrowArray. |
The sub GArrowArray. It covers only from
offset
to offset + length
range. The sub GArrowArray shares
values with the base GArrowArray.
[transfer full]
gchar * garrow_array_to_string (GArrowArray *array
,GError **error
);
The formatted array content or NULL
on error.
The returned string should be freed when with g_free()
when no
longer needed.
[nullable]
Since: 0.4.0
GArrowBuffer *
garrow_primitive_array_get_buffer (GArrowPrimitiveArray *array
);
GArrowBooleanArray * garrow_boolean_array_new (gint64 length
,GArrowBuffer *data
,GArrowBuffer *null_bitmap
,gint64 n_nulls
);
length |
The number of elements. |
|
data |
The binary data in Arrow format of the array. |
|
null_bitmap |
The bitmap that shows null elements. The
N-th element is null when the N-th bit is 0, not null otherwise.
If the array has no null elements, the bitmap must be |
[nullable] |
n_nulls |
The number of null elements. If -1 is specified, the
number of nulls are computed from |
Since: 0.4.0
gboolean garrow_boolean_array_get_value (GArrowBooleanArray *array
,gint64 i
);
GArrowInt8Array * garrow_int8_array_new (gint64 length
,GArrowBuffer *data
,GArrowBuffer *null_bitmap
,gint64 n_nulls
);
length |
The number of elements. |
|
data |
The binary data in Arrow format of the array. |
|
null_bitmap |
The bitmap that shows null elements. The
N-th element is null when the N-th bit is 0, not null otherwise.
If the array has no null elements, the bitmap must be |
[nullable] |
n_nulls |
The number of null elements. If -1 is specified, the
number of nulls are computed from |
Since: 0.4.0
gint8 garrow_int8_array_get_value (GArrowInt8Array *array
,gint64 i
);
GArrowUInt8Array * garrow_uint8_array_new (gint64 length
,GArrowBuffer *data
,GArrowBuffer *null_bitmap
,gint64 n_nulls
);
length |
The number of elements. |
|
data |
The binary data in Arrow format of the array. |
|
null_bitmap |
The bitmap that shows null elements. The
N-th element is null when the N-th bit is 0, not null otherwise.
If the array has no null elements, the bitmap must be |
[nullable] |
n_nulls |
The number of null elements. If -1 is specified, the
number of nulls are computed from |
Since: 0.4.0
guint8 garrow_uint8_array_get_value (GArrowUInt8Array *array
,gint64 i
);
GArrowInt16Array * garrow_int16_array_new (gint64 length
,GArrowBuffer *data
,GArrowBuffer *null_bitmap
,gint64 n_nulls
);
length |
The number of elements. |
|
data |
The binary data in Arrow format of the array. |
|
null_bitmap |
The bitmap that shows null elements. The
N-th element is null when the N-th bit is 0, not null otherwise.
If the array has no null elements, the bitmap must be |
[nullable] |
n_nulls |
The number of null elements. If -1 is specified, the
number of nulls are computed from |
Since: 0.4.0
gint16 garrow_int16_array_get_value (GArrowInt16Array *array
,gint64 i
);
GArrowUInt16Array * garrow_uint16_array_new (gint64 length
,GArrowBuffer *data
,GArrowBuffer *null_bitmap
,gint64 n_nulls
);
length |
The number of elements. |
|
data |
The binary data in Arrow format of the array. |
|
null_bitmap |
The bitmap that shows null elements. The
N-th element is null when the N-th bit is 0, not null otherwise.
If the array has no null elements, the bitmap must be |
[nullable] |
n_nulls |
The number of null elements. If -1 is specified, the
number of nulls are computed from |
Since: 0.4.0
guint16 garrow_uint16_array_get_value (GArrowUInt16Array *array
,gint64 i
);
GArrowInt32Array * garrow_int32_array_new (gint64 length
,GArrowBuffer *data
,GArrowBuffer *null_bitmap
,gint64 n_nulls
);
length |
The number of elements. |
|
data |
The binary data in Arrow format of the array. |
|
null_bitmap |
The bitmap that shows null elements. The
N-th element is null when the N-th bit is 0, not null otherwise.
If the array has no null elements, the bitmap must be |
[nullable] |
n_nulls |
The number of null elements. If -1 is specified, the
number of nulls are computed from |
Since: 0.4.0
gint32 garrow_int32_array_get_value (GArrowInt32Array *array
,gint64 i
);
GArrowUInt32Array * garrow_uint32_array_new (gint64 length
,GArrowBuffer *data
,GArrowBuffer *null_bitmap
,gint64 n_nulls
);
length |
The number of elements. |
|
data |
The binary data in Arrow format of the array. |
|
null_bitmap |
The bitmap that shows null elements. The
N-th element is null when the N-th bit is 0, not null otherwise.
If the array has no null elements, the bitmap must be |
[nullable] |
n_nulls |
The number of null elements. If -1 is specified, the
number of nulls are computed from |
Since: 0.4.0
guint32 garrow_uint32_array_get_value (GArrowUInt32Array *array
,gint64 i
);
GArrowInt64Array * garrow_int64_array_new (gint64 length
,GArrowBuffer *data
,GArrowBuffer *null_bitmap
,gint64 n_nulls
);
length |
The number of elements. |
|
data |
The binary data in Arrow format of the array. |
|
null_bitmap |
The bitmap that shows null elements. The
N-th element is null when the N-th bit is 0, not null otherwise.
If the array has no null elements, the bitmap must be |
[nullable] |
n_nulls |
The number of null elements. If -1 is specified, the
number of nulls are computed from |
Since: 0.4.0
gint64 garrow_int64_array_get_value (GArrowInt64Array *array
,gint64 i
);
GArrowUInt64Array * garrow_uint64_array_new (gint64 length
,GArrowBuffer *data
,GArrowBuffer *null_bitmap
,gint64 n_nulls
);
length |
The number of elements. |
|
data |
The binary data in Arrow format of the array. |
|
null_bitmap |
The bitmap that shows null elements. The
N-th element is null when the N-th bit is 0, not null otherwise.
If the array has no null elements, the bitmap must be |
[nullable] |
n_nulls |
The number of null elements. If -1 is specified, the
number of nulls are computed from |
Since: 0.4.0
guint64 garrow_uint64_array_get_value (GArrowUInt64Array *array
,gint64 i
);
GArrowFloatArray * garrow_float_array_new (gint64 length
,GArrowBuffer *data
,GArrowBuffer *null_bitmap
,gint64 n_nulls
);
length |
The number of elements. |
|
data |
The binary data in Arrow format of the array. |
|
null_bitmap |
The bitmap that shows null elements. The
N-th element is null when the N-th bit is 0, not null otherwise.
If the array has no null elements, the bitmap must be |
[nullable] |
n_nulls |
The number of null elements. If -1 is specified, the
number of nulls are computed from |
Since: 0.4.0
gfloat garrow_float_array_get_value (GArrowFloatArray *array
,gint64 i
);
GArrowDoubleArray * garrow_double_array_new (gint64 length
,GArrowBuffer *data
,GArrowBuffer *null_bitmap
,gint64 n_nulls
);
length |
The number of elements. |
|
data |
The binary data in Arrow format of the array. |
|
null_bitmap |
The bitmap that shows null elements. The
N-th element is null when the N-th bit is 0, not null otherwise.
If the array has no null elements, the bitmap must be |
[nullable] |
n_nulls |
The number of null elements. If -1 is specified, the
number of nulls are computed from |
Since: 0.4.0
gdouble garrow_double_array_get_value (GArrowDoubleArray *array
,gint64 i
);
GArrowBinaryArray * garrow_binary_array_new (gint64 length
,GArrowBuffer *value_offsets
,GArrowBuffer *data
,GArrowBuffer *null_bitmap
,gint64 n_nulls
);
length |
The number of elements. |
|
value_offsets |
The value offsets of |
|
data |
The binary data in Arrow format of the array. |
|
null_bitmap |
The bitmap that shows null elements. The
N-th element is null when the N-th bit is 0, not null otherwise.
If the array has no null elements, the bitmap must be |
[nullable] |
n_nulls |
The number of null elements. If -1 is specified, the
number of nulls are computed from |
Since: 0.4.0
GBytes * garrow_binary_array_get_value (GArrowBinaryArray *array
,gint64 i
);
GArrowBuffer *
garrow_binary_array_get_buffer (GArrowBinaryArray *array
);
GArrowStringArray * garrow_string_array_new (gint64 length
,GArrowBuffer *value_offsets
,GArrowBuffer *data
,GArrowBuffer *null_bitmap
,gint64 n_nulls
);
length |
The number of elements. |
|
value_offsets |
The value offsets of |
|
data |
The binary data in Arrow format of the array. |
|
null_bitmap |
The bitmap that shows null elements. The
N-th element is null when the N-th bit is 0, not null otherwise.
If the array has no null elements, the bitmap must be |
[nullable] |
n_nulls |
The number of null elements. If -1 is specified, the
number of nulls are computed from |
Since: 0.4.0
gchar * garrow_string_array_get_string (GArrowStringArray *array
,gint64 i
);
GArrowListArray * garrow_list_array_new (gint64 length
,GArrowBuffer *value_offsets
,GArrowArray *values
,GArrowBuffer *null_bitmap
,gint64 n_nulls
);
length |
The number of elements. |
|
value_offsets |
The offsets of |
|
values |
The values as GArrowArray. |
|
null_bitmap |
The bitmap that shows null elements. The
N-th element is null when the N-th bit is 0, not null otherwise.
If the array has no null elements, the bitmap must be |
[nullable] |
n_nulls |
The number of null elements. If -1 is specified, the
number of nulls are computed from |
Since: 0.4.0
GArrowDataType *
garrow_list_array_get_value_type (GArrowListArray *array
);
GArrowArray * garrow_list_array_get_value (GArrowListArray *array
,gint64 i
);
GArrowStructArray * garrow_struct_array_new (GArrowDataType *data_type
,gint64 length
,GList *children
,GArrowBuffer *null_bitmap
,gint64 n_nulls
);
data_type |
The data type of the struct. |
|
length |
The number of elements. |
|
children |
The arrays for each field as GList of GArrowArray. |
[element-type GArrowArray] |
null_bitmap |
The bitmap that shows null elements. The
N-th element is null when the N-th bit is 0, not null otherwise.
If the array has no null elements, the bitmap must be |
[nullable] |
n_nulls |
The number of null elements. If -1 is specified, the
number of nulls are computed from |
Since: 0.4.0
GArrowArray * garrow_struct_array_get_field (GArrowStructArray *array
,gint i
);
GList *
garrow_struct_array_get_fields (GArrowStructArray *array
);
struct GArrowPrimitiveArrayClass { GArrowArrayClass parent_class; };
struct GArrowBooleanArrayClass { GArrowPrimitiveArrayClass parent_class; };
struct GArrowInt8ArrayClass { GArrowPrimitiveArrayClass parent_class; };
struct GArrowUInt8ArrayClass { GArrowPrimitiveArrayClass parent_class; };
struct GArrowInt16ArrayClass { GArrowPrimitiveArrayClass parent_class; };
struct GArrowUInt16ArrayClass { GArrowPrimitiveArrayClass parent_class; };
struct GArrowInt32ArrayClass { GArrowPrimitiveArrayClass parent_class; };
struct GArrowUInt32ArrayClass { GArrowPrimitiveArrayClass parent_class; };
struct GArrowInt64ArrayClass { GArrowPrimitiveArrayClass parent_class; };
struct GArrowUInt64ArrayClass { GArrowPrimitiveArrayClass parent_class; };
struct GArrowFloatArrayClass { GArrowPrimitiveArrayClass parent_class; };
struct GArrowDoubleArrayClass { GArrowPrimitiveArrayClass parent_class; };
struct GArrowStringArrayClass { GArrowBinaryArrayClass parent_class; };
“array”
property“array” gpointer
The raw std::shared<arrow::Array> *.
Flags: Write / Construct Only