![]() |
![]() |
![]() |
![]() |
GArrowTable is a class for table. Table has zero or more GArrowChunkedArrays and zero or more records.
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 GArrowChunkedArray, GArrowArray and GArrowRecordBatch. |
|
error |
[nullable] |
Since: 0.12.0
GArrowTable * garrow_table_new_chunked_arrays (GArrowSchema *schema
,GArrowChunkedArray **chunked_arrays
,gsize n_chunked_arrays
,GError **error
);
Since: 1.0.0
GArrowTable * garrow_table_new_arrays (GArrowSchema *schema
,GArrowArray **arrays
,gsize n_arrays
,GError **error
);
Since: 0.12.0
GArrowTable * garrow_table_new_record_batches (GArrowSchema *schema
,GArrowRecordBatch **record_batches
,gsize n_record_batches
,GError **error
);
Since: 0.12.0
gboolean garrow_table_equal (GArrowTable *table
,GArrowTable *other_table
);
Since: 0.4.0
GArrowChunkedArray * garrow_table_get_column_data (GArrowTable *table
,gint i
);
table |
A GArrowTable. |
|
i |
The index of the target column. If it's negative, index is
counted backward from the end of the columns. |
Since: 1.0.0
GArrowTable * garrow_table_add_column (GArrowTable *table
,guint i
,GArrowField *field
,GArrowChunkedArray *chunked_array
,GError **error
);
table |
A GArrowTable. |
|
i |
The index of the new column. |
|
field |
The field for the column to be added. |
|
chunked_array |
The column data to be added. |
|
error |
[nullable] |
The newly allocated
GArrowTable that has a new column or NULL
on error.
[nullable][transfer full]
Since: 1.0.0
GArrowTable * garrow_table_remove_column (GArrowTable *table
,guint i
,GError **error
);
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
,GArrowField *field
,GArrowChunkedArray *chunked_array
,GError **error
);
table |
A GArrowTable. |
|
i |
The index of the column to be replaced. |
|
field |
The field for the new column. |
|
chunked_array |
The newly added column data. |
|
error |
[nullable] |
The newly allocated
GArrowTable that has column
as the i
-th column or NULL
on
error.
[nullable][transfer full]
Since: 1.0.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 |
[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
GArrowTable * garrow_table_combine_chunks (GArrowTable *table
,GError **error
);
Since: 1.0.0
“table”
property“table” gpointer
The raw std::shared<arrow::Table> *.
Owner: GArrowTable
Flags: Write / Construct Only