| [ Web Proxy ] |
| Viewing: https://arrow.apache.org/docs/python/generated/../integration/../../cpp/api/c_abi.html | [Back] [Original] |
See also
The C data interface and C stream interface specifications.
Export C++ DataType using the C data interface format.
The root type is considered to have empty name and metadata. If you want the root type to have a name and/or metadata, pass a Field instead.
type [in] DataType object to export
out [out] C struct where to export the datatype
Export C++ Field using the C data interface format.
field [in] Field object to export
out [out] C struct where to export the field
Export C++ Schema using the C data interface format.
schema [in] Schema object to export
out [out] C struct where to export the field
Export C++ Array using the C data interface format.
The resulting ArrowArray struct keeps the array data and buffers alive until its release callback is called by the consumer.
array [in] Array object to export
out [out] C struct where to export the array
out_schema [out] optional C struct where to export the array type
Export C++ RecordBatch using the C data interface format.
The record batch is exported as if it were a struct array. The resulting ArrowArray struct keeps the record batch data and buffers alive until its release callback is called by the consumer.
batch [in] Record batch to export
out [out] C struct where to export the record batch
out_schema [out] optional C struct where to export the record batch schema
Import C++ DataType from the C data interface.
The given ArrowSchema struct is released (as per the C data interface specification), even if this function fails.
schema [inout] C data interface struct representing the data type
Imported type object
Import C++ Field from the C data interface.
The given ArrowSchema struct is released (as per the C data interface specification), even if this function fails.
schema [inout] C data interface struct representing the field
Imported field object
Import C++ Schema from the C data interface.
The given ArrowSchema struct is released (as per the C data interface specification), even if this function fails.
schema [inout] C data interface struct representing the field
Imported field object
Import C++ array from the C data interface.
The ArrowArray struct has its contents moved (as per the C data interface specification) to a private object held alive by the resulting array.
array [inout] C data interface struct holding the array data
type [in] type of the imported array
Imported array object
Import C++ array and its type from the C data interface.
The ArrowArray struct has its contents moved (as per the C data interface specification) to a private object held alive by the resulting array. The ArrowSchema struct is released, even if this function fails.
array [inout] C data interface struct holding the array data
type [inout] C data interface struct holding the array type
Imported array object
Import C++ record batch from the C data interface.
The ArrowArray struct has its contents moved (as per the C data interface specification) to a private object held alive by the resulting record batch.
array [inout] C data interface struct holding the record batch data
schema [in] schema of the imported record batch
Imported record batch object
Import C++ record batch and its schema from the C data interface.
The type represented by the ArrowSchema struct must be a struct type array. The ArrowArray struct has its contents moved (as per the C data interface specification) to a private object held alive by the resulting record batch. The ArrowSchema struct is released, even if this function fails.
array [inout] C data interface struct holding the record batch data
schema [inout] C data interface struct holding the record batch schema
Imported record batch object
Export C++ RecordBatchReader using the C stream interface.
The resulting ArrowArrayStream struct keeps the record batch reader alive until its release callback is called by the consumer.
reader [in] RecordBatchReader object to export
out [out] C struct where to export the stream
Export C++ ChunkedArray using the C data interface format.
The resulting ArrowArrayStream struct keeps the chunked array data and buffers alive until its release callback is called by the consumer.
chunked_array [in] ChunkedArray object to export
out [out] C struct where to export the stream
Export C++ RecordBatchReader using the C device stream interface.
The resulting ArrowDeviceArrayStream struct keeps the record batch reader alive until its release callback is called by the consumer. The device type is determined by calling device_type() on the RecordBatchReader.
reader [in] RecordBatchReader object to export
out [out] C struct to export the stream to
Export C++ ChunkedArray using the C device data interface format.
The resulting ArrowDeviceArrayStream keeps the chunked array data and buffers alive until its release callback is called by the consumer.
chunked_array [in] ChunkedArray object to export
device_type [in] the device type the data is located on
out [out] C struct to export the stream to
Import C++ RecordBatchReader from the C stream interface.
The ArrowArrayStream struct has its contents moved to a private object held alive by the resulting record batch reader.
stream [inout] C stream interface struct
Imported RecordBatchReader object
Import C++ ChunkedArray from the C stream interface.
The ArrowArrayStream struct has its contents moved to a private object, is consumed in its entirity, and released before returning all chunks as a ChunkedArray.
stream [inout] C stream interface struct
Imported ChunkedArray object
Import C++ RecordBatchReader from the C device stream interface.
The ArrowDeviceArrayStream struct has its contents moved to a private object held alive by the resulting record batch reader.
Note
If there was a required sync event, sync events are accessible by individual buffers of columns. We are not yet bubbling the sync events from the buffers up to the GetSyncEvent method of an imported RecordBatch. This will be added in a future update.
stream [inout] C device stream interface struct
mapper [in] mapping from device type and ID to memory manager
Imported RecordBatchReader object
Import C++ ChunkedArray from the C device stream interface.
The ArrowDeviceArrayStream struct has its contents moved to a private object, is consumed in its entirety, and released before returning all chunks as a ChunkedArray.
Note
Any chunks that require synchronization for their device memory will have the SyncEvent objects available by checking the individual buffers of each chunk. These SyncEvents should be checked before accessing the data in those buffers.
stream [inout] C device stream interface struct
mapper [in] mapping from device type and ID to memory manager
Imported ChunkedArray object
| Web Proxy Viewer | New URL | Original Page |