Procs
proc exportRecordBatch(batch: RecordBatch): (pointer, pointer) {. ...raises: [OperationError], tags: [], forbids: [].}
- Exports a record batch to the Arrow C Data Interface format. Returns (cAbiArray, cAbiSchema) — pointers to ArrowArray and ArrowSchema C structs (owned by the caller).
proc exportRecordBatchArray(batch: RecordBatch): pointer {. ...raises: [OperationError], tags: [], forbids: [].}
-
Exports only the ArrowArray C Data Interface struct.
Arrow GLib supports a nil schema output for this operation. Callers that already converted the record-batch schema can therefore avoid creating and releasing an unused schema for every sliced or streaming window. The returned outer struct is owned by the caller. Its release callback owns the Arrow buffers until a consumer takes ownership of the array.
proc exportRecordBatchReader(reader: RecordBatchReader): pointer {. ...raises: [OperationError], tags: [], forbids: [].}
- Exports a RecordBatchReader to the Arrow C Data Interface format. Returns a pointer to an ArrowArrayStream C struct (owned by the caller).
proc exportSchema(schema: Schema): pointer {....raises: [OperationError], tags: [], forbids: [].}
- Exports a schema to the Arrow C Data Interface format. Returns a pointer to an ArrowSchema C struct (owned by the caller).
proc importRecordBatchReader(cAbiArrayStream: pointer): RecordBatchReader {. ...raises: [OperationError], tags: [], forbids: [].}
- Imports a RecordBatchReader from an Arrow C Data Interface ArrowArrayStream.