#[unsafe(no_mangle)]pub unsafe extern "C" fn laminar_batch_import(
array: *mut FFI_ArrowArray,
schema: *mut FFI_ArrowSchema,
out: *mut *mut LaminarRecordBatch,
) -> i32Expand description
Import a RecordBatch from the Arrow C Data Interface.
Takes ownership of the ArrowArray and ArrowSchema structs.
The release callbacks will be called automatically.
§Arguments
array- Pointer toArrowArraystruct (ownership transferred)schema- Pointer toArrowSchemastruct (ownership transferred)out- Pointer to receive the new batch handle
§Returns
LAMINAR_OK on success, or an error code.
§Safety
arrayandschemamust be valid Arrow C Data Interface structs- Ownership is transferred - the structs will be released by this function
outmust be a valid pointer