GArrowField
GArrowField — Field class
|
|
Object Hierarchy
GObject
╰── GArrowField
Description
GArrowField is a class for field. Field is metadata of a
column. It has name, data type (GArrowDataType) and nullable
information of the column.
Functions
garrow_field_new_full ()
GArrowField *
garrow_field_new_full (const gchar *name
,
GArrowDataType *data_type
,
gboolean nullable
);
garrow_field_get_name ()
const gchar *
garrow_field_get_name (GArrowField *field
);
Returns
The name of the field.
garrow_field_get_data_type ()
GArrowDataType *
garrow_field_get_data_type (GArrowField *field
);
Returns
The data type of the field.
[transfer none]
garrow_field_is_nullable ()
gboolean
garrow_field_is_nullable (GArrowField *field
);
Returns
Whether the filed may include null or not.
garrow_field_equal ()
gboolean
garrow_field_equal (GArrowField *field
,
GArrowField *other_field
);
Returns
TRUE
if both of them have the same data, FALSE
otherwise.
garrow_field_to_string ()
gchar *
garrow_field_to_string (GArrowField *field
);
Returns
The string representation of the field.
Types and Values
GARROW_TYPE_FIELD
#define GARROW_TYPE_FIELD (garrow_field_get_type())
struct GArrowFieldClass
struct GArrowFieldClass {
GObjectClass parent_class;
};
GArrowField
typedef struct _GArrowField GArrowField;
Property Details
The “data-type”
property
“data-type” GArrowDataType *
The data type.
Flags: Write / Construct Only
The “field”
property
“field” gpointer
The raw std::shared<arrow::Field> *.
Flags: Write / Construct Only