| Top |
GArrowSchema is a class for schema. Schema is metadata of a table. It has zero or more GArrowFields.
gboolean garrow_schema_equal (GArrowSchema *schema,GArrowSchema *other_schema);
Since: 0.4.0
GArrowField * garrow_schema_get_field_by_name (GArrowSchema *schema,const gchar *name);
gint garrow_schema_get_field_index (GArrowSchema *schema,const gchar *name);
Since: 0.15.0
gchar * garrow_schema_to_string_metadata (GArrowSchema *schema,gboolean show_metadata);
The string representation of the schema.
It should be freed with g_free() when no longer needed.
Since: 0.17.0
GArrowSchema * garrow_schema_add_field (GArrowSchema *schema,guint i,GArrowField *field,GError **error);
schema |
A GArrowSchema. |
|
i |
The index of the new field. |
|
field |
The field to be added. |
|
error |
[nullable] |
The newly allocated
GArrowSchema that has a new field or NULL on error.
[nullable][transfer full]
Since: 0.10.0
GArrowSchema * garrow_schema_remove_field (GArrowSchema *schema,guint i,GError **error);
The newly allocated
GArrowSchema that doesn't have the field or NULL on error.
[nullable][transfer full]
Since: 0.10.0
GArrowSchema * garrow_schema_replace_field (GArrowSchema *schema,guint i,GArrowField *field,GError **error);
schema |
A GArrowSchema. |
|
i |
The index of the field to be replaced. |
|
field |
The newly added GArrowField. |
|
error |
[nullable] |
The newly allocated
GArrowSchema that has field
as the i
-th field or NULL on error.
[nullable][transfer full]
Since: 0.10.0
gboolean
garrow_schema_has_metadata (GArrowSchema *schema);
Since: 3.0.0
GHashTable *
garrow_schema_get_metadata (GArrowSchema *schema);
The metadata in the schema.
It should be freed with g_hash_table_unref() when no longer needed.
[element-type utf8 utf8][nullable][transfer full]
Since: 0.17.0
GArrowSchema * garrow_schema_with_metadata (GArrowSchema *schema,GHashTable *metadata);
Since: 0.17.0
“schema” property“schema” gpointer
The raw std::shared<arrow::Schema> *.
Owner: GArrowSchema
Flags: Write / Construct Only