Top | ![]() |
![]() |
![]() |
![]() |
GArrowTable * | garrow_table_new () |
GArrowTable * | garrow_table_new_values () |
GArrowTable * | garrow_table_new_columns () |
GArrowTable * | garrow_table_new_arrays () |
GArrowTable * | garrow_table_new_record_batches () |
gboolean | garrow_table_equal () |
GArrowSchema * | garrow_table_get_schema () |
GArrowColumn * | garrow_table_get_column () |
guint | garrow_table_get_n_columns () |
guint64 | garrow_table_get_n_rows () |
GArrowTable * | garrow_table_add_column () |
GArrowTable * | garrow_table_remove_column () |
GArrowTable * | garrow_table_replace_column () |
gchar * | garrow_table_to_string () |
GArrowTable * | garrow_table_concatenate () |
GArrowTable * | garrow_table_slice () |
GArrowTable is a class for table. Table has zero or more GArrowColumns and zero or more records.
GArrowTable * garrow_table_new (GArrowSchema *schema
,GList *columns
);
garrow_table_new
has been deprecated since version 0.12.0 and should not be used in newly-written code.
Use garrow_table_new_values()
instead.
GArrowTable * garrow_table_new_values (GArrowSchema *schema
,GList *values
,GError **error
);
[skip]
schema |
The schema of the table. |
|
values |
The values of the table. All values must be instance of the same class. Available classes are GArrowColumn, GArrowArray and GArrowRecordBatch. |
|
error |
Return location for a GError or |
[nullable] |
Since: 0.12.0
GArrowTable * garrow_table_new_columns (GArrowSchema *schema
,GArrowColumn **columns
,gsize n_columns
,GError **error
);
schema |
The schema of the table. |
|
columns |
The columns of the table. |
[array length=n_columns] |
n_columns |
The number of columns. |
|
error |
Return location for a GError or |
[nullable] |
Since: 0.12.0
GArrowTable * garrow_table_new_arrays (GArrowSchema *schema
,GArrowArray **arrays
,gsize n_arrays
,GError **error
);
schema |
The schema of the table. |
|
arrays |
The arrays of the table. |
[array length=n_arrays] |
n_arrays |
The number of arrays. |
|
error |
Return location for a GError or |
[nullable] |
Since: 0.12.0
GArrowTable * garrow_table_new_record_batches (GArrowSchema *schema
,GArrowRecordBatch **record_batches
,gsize n_record_batches
,GError **error
);
schema |
The schema of the table. |
|
record_batches |
The record batches that have data for the table. |
[array length=n_record_batches] |
n_record_batches |
The number of record batches. |
|
error |
Return location for a GError or |
[nullable] |
Since: 0.12.0
gboolean garrow_table_equal (GArrowTable *table
,GArrowTable *other_table
);
Since: 0.4.0
GArrowTable * garrow_table_add_column (GArrowTable *table
,guint i
,GArrowColumn *column
,GError **error
);
table |
A GArrowTable. |
|
i |
The index of the new column. |
|
column |
The column to be added. |
|
error |
Return location for a GError or |
[nullable] |
The newly allocated
GArrowTable that has a new column or NULL
on error.
[nullable][transfer full]
Since: 0.3.0
GArrowTable * garrow_table_remove_column (GArrowTable *table
,guint i
,GError **error
);
table |
A GArrowTable. |
|
i |
The index of the column to be removed. |
|
error |
Return location for a GError or |
[nullable] |
The newly allocated
GArrowTable that doesn't have the column or NULL
on error.
[nullable][transfer full]
Since: 0.3.0
GArrowTable * garrow_table_replace_column (GArrowTable *table
,guint i
,GArrowColumn *column
,GError **error
);
table |
A GArrowTable. |
|
i |
The index of the column to be replaced. |
|
column |
The newly added GArrowColumn. |
|
error |
Return location for a GError or |
[nullable] |
The newly allocated
GArrowTable that has column
as the i
-th column or NULL
on
error.
[nullable][transfer full]
Since: 0.10.0
gchar * garrow_table_to_string (GArrowTable *table
,GError **error
);
The formatted table content or NULL
on error.
The returned string should be freed when with g_free()
when no
longer needed.
[nullable][transfer full]
Since: 0.12.0
GArrowTable * garrow_table_concatenate (GArrowTable *table
,GList *other_tables
,GError **error
);
table |
A GArrowTable. |
|
other_tables |
The tables to be concatenated. |
[element-type GArrowTable] |
error |
Return location for a GError or |
[nullable] |
Since: 0.14.0
GArrowTable * garrow_table_slice (GArrowTable *table
,gint64 offset
,gint64 length
);
table |
A GArrowTable. |
|
offset |
The offset of sub GArrowTable. If the offset is negative, the offset is counted from the last. |
|
length |
The length of sub GArrowTable. |
The sub GArrowTable. It covers
only from offset
to offset + length
range. The sub
GArrowTable shares values with the base
GArrowTable.
[transfer full]
Since: 0.14.0