You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@arrow.apache.org by James Van Alstine <jr...@gmail.com> on 2022/01/09 21:51:27 UTC
[c_glib] c data interface export / import
Can you import / export from gobject library and the c data interface?
Re: [c_glib] c data interface export / import
Posted by Sutou Kouhei <ko...@clear-code.com>.
Hi,
In <CA...@mail.gmail.com>
"[c_glib] c data interface export / import" on Sun, 9 Jan 2022 13:51:27 -0800,
James Van Alstine <jr...@gmail.com> wrote:
> Can you import / export from gobject library and the c data interface?
You can use the following functions:
* garrow_record_batch_import()
https://arrow.apache.org/docs/c_glib/arrow-glib/record-batch.html#garrow-record-batch-import
* garrow_record_batch_export()
https://arrow.apache.org/docs/c_glib/arrow-glib/record-batch.html#garrow-record-batch-export
* garrow_record_batch_reader_import()
https://arrow.apache.org/docs/c_glib/arrow-glib/reader-classes.html#garrow-record-batch-reader-import
* garrow_record_batch_reader_export()
https://arrow.apache.org/docs/c_glib/arrow-glib/reader-classes.html#garrow-record-batch-reader-export
* garrow_schema_import()
https://arrow.apache.org/docs/c_glib/arrow-glib/GArrowSchema.html#garrow-schema-import
* garrow_schema_export()
https://arrow.apache.org/docs/c_glib/arrow-glib/GArrowSchema.html#garrow-schema-export
The following functions may be needed:
* garrow_array_import()
https://arrow.apache.org/docs/c_glib/arrow-glib/basic-array-classes.html#garrow-array-import
* garrow_array_export()
https://arrow.apache.org/docs/c_glib/arrow-glib/basic-array-classes.html#garrow-array-export
* garrow_data_type_export()
https://arrow.apache.org/docs/c_glib/arrow-glib/basic-data-type-classes.html#garrow-data-type-export
* garrow_data_type_import()
https://arrow.apache.org/docs/c_glib/arrow-glib/basic-data-type-classes.html#garrow-data-type-import
Here is an use-case of them:
* Red Arrow DuckDB
https://github.com/red-data-tools/red-arrow-duckdb/blob/master/ext/arrow-duckdb/arrow-duckdb.cpp
Thanks,
--
kou