Top |
GArrowField is a class for field. Field is metadata of a column. It has name, data type (GArrowDataType) and nullable information of the column.
GArrowField * garrow_field_import (gpointer c_abi_schema
,GError **error
);
An imported GArrowField on success,
NULL
on error.
You don't need to release the passed struct ArrowSchema *
,
even if this function reports an error.
[transfer full][nullable]
Since: 6.0.0
GArrowField * garrow_field_new_full (const gchar *name
,GArrowDataType *data_type
,gboolean nullable
);
gpointer garrow_field_export (GArrowField *field
,GError **error
);
An exported GArrowField as
struct ArrowStruct *
on success, NULL
on error.
It should be freed with the ArrowSchema::release
callback then
g_free()
when no longer needed.
[transfer full][nullable]
Since: 6.0.0
gchar * garrow_field_to_string_metadata (GArrowField *field
,gboolean show_metadata
);
The string representation of the field.
It should be freed with g_free()
when no longer needed.
Since: 3.0.0
GHashTable *
garrow_field_get_metadata (GArrowField *field
);
The metadata in the field.
It should be freed with g_hash_table_unref()
when no longer needed.
[element-type utf8 utf8][nullable][transfer full]
Since: 3.0.0
GArrowField * garrow_field_with_metadata (GArrowField *field
,GHashTable *metadata
);
Since: 3.0.0
GArrowField * garrow_field_with_merged_metadata (GArrowField *field
,GHashTable *metadata
);
field |
A GArrowField. |
|
metadata |
An additional associated metadata. |
[element-type utf8 utf8] |
The new field that also has the given metadata. If both of the existing metadata and the given metadata have the same keys, the values in the given metadata are used.
[transfer full]
Since: 3.0.0
GArrowField *
garrow_field_remove_metadata (GArrowField *field
);
Since: 3.0.0
“data-type”
property“data-type” GArrowDataType *
The data type.
Owner: GArrowField
Flags: Write / Construct Only
“field”
property“field” gpointer
The raw std::shared<arrow::Field> *.
Owner: GArrowField
Flags: Write / Construct Only