| Top |
GArrowTable is a class for table. Table has zero or more GArrowChunkedArrays and zero or more records.
GArrowFeatherWriteProperties is a class to customize how to write Feather data.
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: 0.15.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
gboolean garrow_table_equal_metadata (GArrowTable *table,GArrowTable *other_table,gboolean check_metadata);
table |
A GArrowTable. |
|
other_table |
A GArrowTable to be compared. |
|
check_metadata |
Whether to compare metadata. |
Since: 0.17.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: 0.15.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: 0.15.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: 0.15.0
gchar * garrow_table_to_string (GArrowTable *table,GError **error);
The formatted table content or NULL on error.
It should be freed with g_free() when no longer needed.
[nullable]
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: 0.16.0
GArrowFeatherWriteProperties *
garrow_feather_write_properties_new (void);
Since: 0.17.0
gboolean garrow_table_write_as_feather (GArrowTable *table,GArrowOutputStream *sink,GArrowFeatherWriteProperties *properties,GError **error);
Writes the table
as Feather format data to the sink
.
table |
A GArrowTable. |
|
sink |
The output. |
|
properties |
The properties for this write. |
[nullable] |
error |
[nullable] |
Since: 0.17.0
struct GArrowFeatherWritePropertiesClass {
GObjectClass parent_class;
};
typedef struct _GArrowFeatherWriteProperties GArrowFeatherWriteProperties;
“compression” property“compression” GArrowCompressionType
Compression type to use. Only
GARROW_COMPRESSION_TYPE_UNCOMPRESSED,
GARROW_COMPRESSION_TYPE_LZ4 and GARROW_COMPRESSION_TYPE_ZSTD
are supported. The default compression is
GARROW_COMPRESSION_TYPE_LZ4 if Apache Arrow C++ is built with
support for it, otherwise GARROW_COMPRESSION_TYPE_UNCOMPRESSED.
GARROW_COMPRESSION_TYPE_UNCOMPRESSED is set as the object
default here.
Owner: GArrowFeatherWriteProperties
Flags: Read / Write
Default value: GARROW_COMPRESSION_TYPE_LZO
Since: 0.17.0
“table” property“table” gpointer
The raw std::shared_ptr<arrow::Table> *.
Owner: GArrowTable
Flags: Write / Construct Only