#[unsafe(no_mangle)]pub unsafe extern "C" fn laminar_batch_export(
batch: *mut LaminarRecordBatch,
out_array: *mut FFI_ArrowArray,
out_schema: *mut FFI_ArrowSchema,
) -> i32Expand description
Export a RecordBatch to the Arrow C Data Interface.
The batch is exported as a struct array (Arrow convention for record batches).
The caller must allocate the ArrowArray and ArrowSchema structs before calling.
§Arguments
batch- Record batch to exportout_array- Pointer to caller-allocatedArrowArraystructout_schema- Pointer to caller-allocatedArrowSchemastruct
§Returns
LAMINAR_OK on success, or an error code.
§Safety
batchmust be a valid batch handleout_arrayandout_schemamust be valid pointers to uninitialized structs- Caller must eventually call the release callbacks on both structs