Top | ![]() |
![]() |
![]() |
![]() |
gboolean | allow-decimal-truncate | Read / Write |
gboolean | allow-float-truncate | Read / Write |
gboolean | allow-int-overflow | Read / Write |
gboolean | allow-invalid-utf8 | Read / Write |
gboolean | allow-time-overflow | Read / Write |
gboolean | allow-time-truncate | Read / Write |
GArrowDataType * | to-data-type | Read / Write |
GArrowCompareOperator | operator | Read / Write |
GArrowCountMode | mode | Read / Write |
GArrowFilterNullSelectionBehavior | null-selection-behavior | Read / Write |
gpointer | function | Write / Construct Only |
#define | GARROW_TYPE_EXECUTE_CONTEXT |
struct | GArrowExecuteContextClass |
#define | GARROW_TYPE_FUNCTION_OPTIONS |
#define | GARROW_TYPE_FUNCTION |
struct | GArrowFunctionClass |
#define | GARROW_TYPE_CAST_OPTIONS |
struct | GArrowCastOptionsClass |
enum | GArrowCountMode |
#define | GARROW_TYPE_COUNT_OPTIONS |
struct | GArrowCountOptionsClass |
enum | GArrowFilterNullSelectionBehavior |
#define | GARROW_TYPE_FILTER_OPTIONS |
struct | GArrowFilterOptionsClass |
#define | GARROW_TYPE_TAKE_OPTIONS |
struct | GArrowTakeOptionsClass |
enum | GArrowCompareOperator |
#define | GARROW_TYPE_COMPARE_OPTIONS |
struct | GArrowCompareOptionsClass |
GArrowCastOptions | |
GArrowCompareOptions | |
GArrowCountOptions | |
GArrowExecuteContext | |
GArrowFilterOptions | |
GArrowFunction | |
GArrowFunctionOptions | |
GArrowFunctionOptionsInterface | |
GArrowTakeOptions |
GEnum ├── GArrowCompareOperator ├── GArrowCountMode ╰── GArrowFilterNullSelectionBehavior GInterface ╰── GArrowFunctionOptions GObject ├── GArrowCastOptions ├── GArrowCompareOptions ├── GArrowCountOptions ├── GArrowExecuteContext ├── GArrowFilterOptions ├── GArrowFunction ╰── GArrowTakeOptions
GArrowCastOptions implements GArrowFunctionOptions.
GArrowCompareOptions implements GArrowFunctionOptions.
GArrowCountOptions implements GArrowFunctionOptions.
GArrowFilterOptions implements GArrowFunctionOptions.
GArrowTakeOptions implements GArrowFunctionOptions.
GArrowFunctionOptions is implemented by GArrowCastOptions, GArrowCompareOptions, GArrowCountOptions, GArrowFilterOptions and GArrowTakeOptions.
GArrowExecuteContext is a class to customize how to execute a function.
GArrowFunctionOptions is an interface for function options. All function options such as GArrowCastOptions must implement this interface.
GArrowFunction is a class to process data.
GArrowCastOptions is a class to customize the cast
function and
garrow_array_cast()
.
GArrowCountOptions is a class to customize the count
function and
garrow_array_count()
.
GArrowFilterOptions is a class to customize the filter
function and
garrow_array_filter()
family.
GArrowTakeOptions is a class to customize the take
function and
garrow_array_take()
family.
GArrowCompareOptions is a class to customize the equal
function
family and garrow_int8_array_compare()
family.
There are many functions to compute data on an array.
GArrowExecuteContext *
garrow_execute_context_new (void
);
Since: 1.0.0
GArrowDatum * garrow_function_execute (GArrowFunction *function
,GList *args
,GArrowFunctionOptions *options
,GArrowExecuteContext *context
,GError **error
);
function |
||
args |
A list of GArrowDatum. |
[element-type GArrowDatum] |
options |
Options for the execution as an object that implements GArrowFunctionOptions. |
[nullable] |
context |
A GArrowExecuteContext for the execution. |
[nullable] |
error |
Return location for a GError or |
[nullable] |
A return value of the execution as GArrowDatum on success, NULL
on error.
[nullable][transfer full]
Since: 1.0.0
GArrowCompareOptions *
garrow_compare_options_new (void
);
Since: 0.14.0
GArrowArray * garrow_array_cast (GArrowArray *array
,GArrowDataType *target_data_type
,GArrowCastOptions *options
,GError **error
);
array |
A GArrowArray. |
|
target_data_type |
A GArrowDataType of cast target data. |
|
options |
[nullable] | |
error |
Return location for a GError or |
[nullable] |
Since: 0.7.0
GArrowArray * garrow_array_unique (GArrowArray *array
,GError **error
);
Since: 0.8.0
GArrowDictionaryArray * garrow_array_dictionary_encode (GArrowArray *array
,GError **error
);
A newly created GArrowDictionaryArray for the array
on success,
NULL
on error.
[nullable][transfer full]
Since: 0.8.0
gint64 garrow_array_count (GArrowArray *array
,GArrowCountOptions *options
,GError **error
);
array |
A GArrowArray. |
|
options |
[nullable] | |
error |
Return location for a GError or |
[nullable] |
The number of target values on success. If an error is occurred, the returned value is untrustful value.
Since: 0.13.0
GArrowStructArray * garrow_array_count_values (GArrowArray *array
,GError **error
);
A GArrowStructArray of {input type "values", int64_t "counts"}
on success, NULL
on error.
[nullable][transfer full]
Since: 0.13.0
GArrowBooleanArray * garrow_boolean_array_invert (GArrowBooleanArray *array
,GError **error
);
The element-wise inverted boolean array.
It should be freed with g_object_unref()
when no longer needed.
[transfer full]
Since: 0.13.0
GArrowBooleanArray * garrow_boolean_array_and (GArrowBooleanArray *left
,GArrowBooleanArray *right
,GError **error
);
left |
A left hand side GArrowBooleanArray. |
|
right |
A right hand side GArrowBooleanArray. |
|
error |
Return location for a GError or |
[nullable] |
The element-wise AND operated boolean array.
It should be freed with g_object_unref()
when no longer needed.
[transfer full]
Since: 0.13.0
GArrowBooleanArray * garrow_boolean_array_or (GArrowBooleanArray *left
,GArrowBooleanArray *right
,GError **error
);
left |
A left hand side GArrowBooleanArray. |
|
right |
A right hand side GArrowBooleanArray. |
|
error |
Return location for a GError or |
[nullable] |
The element-wise OR operated boolean array.
It should be freed with g_object_unref()
when no longer needed.
[transfer full]
Since: 0.13.0
GArrowBooleanArray * garrow_boolean_array_xor (GArrowBooleanArray *left
,GArrowBooleanArray *right
,GError **error
);
left |
A left hand side GArrowBooleanArray. |
|
right |
A right hand side GArrowBooleanArray. |
|
error |
Return location for a GError or |
[nullable] |
The element-wise XOR operated boolean array.
It should be freed with g_object_unref()
when no longer needed.
[transfer full]
Since: 0.13.0
gdouble garrow_numeric_array_mean (GArrowNumericArray *array
,GError **error
);
Since: 0.13.0
gint64 garrow_int8_array_sum (GArrowInt8Array *array
,GError **error
);
The value of the computed sum on success, If an error is occurred, the returned value is untrustful value.
Since: 0.13.0
guint64 garrow_uint8_array_sum (GArrowUInt8Array *array
,GError **error
);
The value of the computed sum on success, If an error is occurred, the returned value is untrustful value.
Since: 0.13.0
gint64 garrow_int16_array_sum (GArrowInt16Array *array
,GError **error
);
The value of the computed sum on success, If an error is occurred, the returned value is untrustful value.
Since: 0.13.0
guint64 garrow_uint16_array_sum (GArrowUInt16Array *array
,GError **error
);
The value of the computed sum on success, If an error is occurred, the returned value is untrustful value.
Since: 0.13.0
gint64 garrow_int32_array_sum (GArrowInt32Array *array
,GError **error
);
The value of the computed sum on success, If an error is occurred, the returned value is untrustful value.
Since: 0.13.0
guint64 garrow_uint32_array_sum (GArrowUInt32Array *array
,GError **error
);
The value of the computed sum on success, If an error is occurred, the returned value is untrustful value.
Since: 0.13.0
gint64 garrow_int64_array_sum (GArrowInt64Array *array
,GError **error
);
The value of the computed sum on success, If an error is occurred, the returned value is untrustful value.
Since: 0.13.0
guint64 garrow_uint64_array_sum (GArrowUInt64Array *array
,GError **error
);
The value of the computed sum on success, If an error is occurred, the returned value is untrustful value.
Since: 0.13.0
gdouble garrow_float_array_sum (GArrowFloatArray *array
,GError **error
);
The value of the computed sum on success, If an error is occurred, the returned value is untrustful value.
Since: 0.13.0
gdouble garrow_double_array_sum (GArrowDoubleArray *array
,GError **error
);
The value of the computed sum on success, If an error is occurred, the returned value is untrustful value.
Since: 0.13.0
GArrowArray * garrow_array_take (GArrowArray *array
,GArrowArray *indices
,GArrowTakeOptions *options
,GError **error
);
array |
A GArrowArray. |
|
indices |
The indices of values to take. |
|
options |
[nullable] | |
error |
Return location for a GError or |
[nullable] |
The GArrowArray taken from
an array of values at indices in input array or NULL
on error.
[nullable][transfer full]
Since: 0.14.0
GArrowChunkedArray * garrow_array_take_chunked_array (GArrowArray *array
,GArrowChunkedArray *indices
,GArrowTakeOptions *options
,GError **error
);
array |
A GArrowArray. |
|
indices |
The indices of values to take. |
|
options |
[nullable] | |
error |
Return location for a GError or |
[nullable] |
The GArrowChunkedArray taken from
an array of values at indices in chunked array or NULL
on error.
[nullable][transfer full]
Since: 0.16.0
GArrowTable * garrow_table_take (GArrowTable *table
,GArrowArray *indices
,GArrowTakeOptions *options
,GError **error
);
table |
A GArrowTable. |
|
indices |
The indices of values to take. |
|
options |
[nullable] | |
error |
Return location for a GError or |
[nullable] |
The GArrowTable taken from
an array of values at indices in input array or NULL
on error.
[nullable][transfer full]
Since: 0.16.0
GArrowTable * garrow_table_take_chunked_array (GArrowTable *table
,GArrowChunkedArray *indices
,GArrowTakeOptions *options
,GError **error
);
table |
A GArrowTable. |
|
indices |
The indices of values to take. |
|
options |
[nullable] | |
error |
Return location for a GError or |
[nullable] |
The GArrowTable taken from
an array of values at indices in chunked array or NULL
on error.
[nullable][transfer full]
Since: 0.16.0
GArrowChunkedArray * garrow_chunked_array_take (GArrowChunkedArray *chunked_array
,GArrowArray *indices
,GArrowTakeOptions *options
,GError **error
);
chunked_array |
||
indices |
The indices of values to take. |
|
options |
[nullable] | |
error |
Return location for a GError or |
[nullable] |
The GArrowChunkedArray taken from
an array of values at indices in input array or NULL
on error.
[nullable][transfer full]
Since: 0.16.0
GArrowChunkedArray * garrow_chunked_array_take_chunked_array (GArrowChunkedArray *chunked_array
,GArrowChunkedArray *indices
,GArrowTakeOptions *options
,GError **error
);
chunked_array |
||
indices |
The indices of values to take. |
|
options |
[nullable] | |
error |
Return location for a GError or |
[nullable] |
The GArrowChunkedArray taken from
an array of values at indices in chunked array or NULL
on error.
[nullable][transfer full]
Since: 0.16.0
GArrowRecordBatch * garrow_record_batch_take (GArrowRecordBatch *record_batch
,GArrowArray *indices
,GArrowTakeOptions *options
,GError **error
);
record_batch |
||
indices |
The indices of values to take. |
|
options |
[nullable] | |
error |
Return location for a GError or |
[nullable] |
The GArrowChunkedArray taken from
an array of values at indices in input array or NULL
on error.
[nullable][transfer full]
Since: 0.16.0
GArrowBooleanArray * garrow_int8_array_compare (GArrowInt8Array *array
,gint8 value
,GArrowCompareOptions *options
,GError **error
);
array |
||
value |
The value to compare. |
|
options |
||
error |
Return location for a GError or |
[nullable] |
The GArrowBooleanArray as
the result compared a numeric array with a scalar on success,
NULL
on error.
[nullable][transfer full]
Since: 0.14.0
GArrowBooleanArray * garrow_uint8_array_compare (GArrowUInt8Array *array
,guint8 value
,GArrowCompareOptions *options
,GError **error
);
array |
||
value |
The value to compare. |
|
options |
||
error |
Return location for a GError or |
[nullable] |
The GArrowBooleanArray as
the result compared a numeric array with a scalar on success,
NULL
on error.
[nullable][transfer full]
Since: 0.14.0
GArrowBooleanArray * garrow_int16_array_compare (GArrowInt16Array *array
,gint16 value
,GArrowCompareOptions *options
,GError **error
);
array |
||
value |
The value to compare. |
|
options |
||
error |
Return location for a GError or |
[nullable] |
The GArrowBooleanArray as
the result compared a numeric array with a scalar on success,
NULL
on error.
[nullable][transfer full]
Since: 0.14.0
GArrowBooleanArray * garrow_uint16_array_compare (GArrowUInt16Array *array
,guint16 value
,GArrowCompareOptions *options
,GError **error
);
array |
||
value |
The value to compare. |
|
options |
||
error |
Return location for a GError or |
[nullable] |
The GArrowBooleanArray as
the result compared a numeric array with a scalar on success,
NULL
on error.
[nullable][transfer full]
Since: 0.14.0
GArrowBooleanArray * garrow_int32_array_compare (GArrowInt32Array *array
,gint32 value
,GArrowCompareOptions *options
,GError **error
);
array |
||
value |
The value to compare. |
|
options |
||
error |
Return location for a GError or |
[nullable] |
The GArrowBooleanArray as
the result compared a numeric array with a scalar on success,
NULL
on error.
[nullable][transfer full]
Since: 0.14.0
GArrowBooleanArray * garrow_uint32_array_compare (GArrowUInt32Array *array
,guint32 value
,GArrowCompareOptions *options
,GError **error
);
array |
||
value |
The value to compare. |
|
options |
||
error |
Return location for a GError or |
[nullable] |
The GArrowBooleanArray as
the result compared a numeric array with a scalar on success,
NULL
on error.
[nullable][transfer full]
Since: 0.14.0
GArrowBooleanArray * garrow_int64_array_compare (GArrowInt64Array *array
,gint64 value
,GArrowCompareOptions *options
,GError **error
);
array |
||
value |
The value to compare. |
|
options |
||
error |
Return location for a GError or |
[nullable] |
The GArrowBooleanArray as
the result compared a numeric array with a scalar on success,
NULL
on error.
[nullable][transfer full]
Since: 0.14.0
GArrowBooleanArray * garrow_uint64_array_compare (GArrowUInt64Array *array
,guint64 value
,GArrowCompareOptions *options
,GError **error
);
array |
||
value |
The value to compare. |
|
options |
||
error |
Return location for a GError or |
[nullable] |
The GArrowBooleanArray as
the result compared a numeric array with a scalar on success,
NULL
on error.
[nullable][transfer full]
Since: 0.14.0
GArrowBooleanArray * garrow_float_array_compare (GArrowFloatArray *array
,gfloat value
,GArrowCompareOptions *options
,GError **error
);
array |
||
value |
The value to compare. |
|
options |
||
error |
Return location for a GError or |
[nullable] |
The GArrowBooleanArray as
the result compared a numeric array with a scalar on success,
NULL
on error.
[nullable][transfer full]
Since: 0.14.0
GArrowBooleanArray * garrow_double_array_compare (GArrowDoubleArray *array
,gdouble value
,GArrowCompareOptions *options
,GError **error
);
array |
||
value |
The value to compare. |
|
options |
||
error |
Return location for a GError or |
[nullable] |
The GArrowBooleanArray as
the result compared a numeric array with a scalar on success,
NULL
on error.
[nullable][transfer full]
Since: 0.14.0
GArrowArray * garrow_array_filter (GArrowArray *array
,GArrowBooleanArray *filter
,GArrowFilterOptions *options
,GError **error
);
array |
A GArrowArray. |
|
filter |
The values indicates which values should be filtered out. |
|
options |
[nullable] | |
error |
Return location for a GError or |
[nullable] |
The GArrowArray filterd with a boolean selection filter. Nulls in the filter will result in nulls in the output.
[nullable][transfer full]
Since: 0.15.0
GArrowBooleanArray * garrow_array_is_in (GArrowArray *left
,GArrowArray *right
,GError **error
);
left |
A left hand side GArrowArray. |
|
right |
A right hand side GArrowArray. |
|
error |
Return location for a GError or |
[nullable] |
The GArrowBooleanArray showing whether each element in the left array is contained in right array.
[nullable][transfer full]
Since: 0.15.0
GArrowBooleanArray * garrow_array_is_in_chunked_array (GArrowArray *left
,GArrowChunkedArray *right
,GError **error
);
left |
A left hand side GArrowArray. |
|
right |
A right hand side GArrowChunkedArray. |
|
error |
Return location for a GError or |
[nullable] |
The GArrowBooleanArray showing whether each element in the left array is contained in right chunked array.
[nullable][transfer full]
Since: 0.15.0
GArrowUInt64Array * garrow_array_sort_to_indices (GArrowArray *array
,GError **error
);
Since: 0.15.0
GArrowTable * garrow_table_filter (GArrowTable *table
,GArrowBooleanArray *filter
,GArrowFilterOptions *options
,GError **error
);
table |
A GArrowTable. |
|
filter |
The values indicates which values should be filtered out. |
|
options |
[nullable] | |
error |
Return location for a GError or |
[nullable] |
The GArrowTable filterd with a boolean selection filter. Nulls in the filter will result in nulls in the output.
[nullable][transfer full]
Since: 0.15.0
GArrowTable * garrow_table_filter_chunked_array (GArrowTable *table
,GArrowChunkedArray *filter
,GArrowFilterOptions *options
,GError **error
);
table |
A GArrowTable. |
|
filter |
The values indicates which values should be filtered out. |
|
options |
[nullable] | |
error |
Return location for a GError or |
[nullable] |
The GArrowTable filterd with a chunked array filter. Nulls in the filter will result in nulls in the output.
[nullable][transfer full]
Since: 0.15.0
GArrowChunkedArray * garrow_chunked_array_filter (GArrowChunkedArray *chunked_array
,GArrowBooleanArray *filter
,GArrowFilterOptions *options
,GError **error
);
chunked_array |
||
filter |
The values indicates which values should be filtered out. |
|
options |
[nullable] | |
error |
Return location for a GError or |
[nullable] |
The GArrowChunkedArray filterd with a boolean selection filter. Nulls in the filter will result in nulls in the output.
[nullable][transfer full]
Since: 0.15.0
GArrowChunkedArray * garrow_chunked_array_filter_chunked_array (GArrowChunkedArray *chunked_array
,GArrowChunkedArray *filter
,GArrowFilterOptions *options
,GError **error
);
chunked_array |
||
filter |
The values indicates which values should be filtered out. |
|
options |
[nullable] | |
error |
Return location for a GError or |
[nullable] |
The GArrowChunkedArray filterd with a chunked array filter. Nulls in the filter will result in nulls in the output.
[nullable][transfer full]
Since: 0.15.0
GArrowRecordBatch * garrow_record_batch_filter (GArrowRecordBatch *record_batch
,GArrowBooleanArray *filter
,GArrowFilterOptions *options
,GError **error
);
record_batch |
||
filter |
The values indicates which values should be filtered out. |
|
options |
[nullable] | |
error |
Return location for a GError or |
[nullable] |
The GArrowRecordBatch filterd with a boolean selection filter. Nulls in the filter will result in nulls in the output.
[nullable][transfer full]
Since: 0.15.0
#define GARROW_TYPE_FUNCTION_OPTIONS (garrow_function_options_get_type())
They are corresponding to
arrow::compute::FilterOptions::NullSelectionBehavior
values.
typedef struct _GArrowFunctionOptionsInterface GArrowFunctionOptionsInterface;
“allow-decimal-truncate”
property “allow-decimal-truncate” gboolean
Whether truncating decimal value is allowed or not.
Flags: Read / Write
Default value: FALSE
Since: 1.0.0
“allow-float-truncate”
property “allow-float-truncate” gboolean
Whether truncating float value is allowed or not.
Flags: Read / Write
Default value: FALSE
Since: 0.12.0
“allow-int-overflow”
property “allow-int-overflow” gboolean
Whether integer overflow is allowed or not.
Flags: Read / Write
Default value: FALSE
Since: 0.7.0
“allow-invalid-utf8”
property “allow-invalid-utf8” gboolean
Whether invalid UTF-8 string value is allowed or not.
Flags: Read / Write
Default value: FALSE
Since: 0.13.0
“allow-time-overflow”
property “allow-time-overflow” gboolean
Whether time overflow is allowed or not.
Flags: Read / Write
Default value: FALSE
Since: 1.0.0
“allow-time-truncate”
property “allow-time-truncate” gboolean
Whether truncating time value is allowed or not.
Flags: Read / Write
Default value: FALSE
Since: 0.8.0
“to-data-type”
property“to-data-type” GArrowDataType *
The GArrowDataType being casted to.
Flags: Read / Write
Since: 1.0.0
“operator”
property“operator” GArrowCompareOperator
How to compare the value.
Flags: Read / Write
Default value: GARROW_COMPARE_EQUAL
Since: 0.14.0
“mode”
property“mode” GArrowCountMode
How to count values.
Flags: Read / Write
Default value: GARROW_COUNT_ALL
Since: 0.13.0
“null-selection-behavior”
property“null-selection-behavior” GArrowFilterNullSelectionBehavior
How to handle filtered values.
Flags: Read / Write
Default value: GARROW_FILTER_NULL_SELECTION_DROP