Hi,

In <ca+2j1a0tjlzswz21atu3oomjhr8bl80kucj7bdfho2goqdq...@mail.gmail.com>
  "[c_glib] c data interface export / import" on Sun, 9 Jan 2022 13:51:27 -0800,
  James Van Alstine <[email protected]> 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

Reply via email to