Skip to main content

laminar_batch_import

Function laminar_batch_import 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn laminar_batch_import( array: *mut FFI_ArrowArray, schema: *mut FFI_ArrowSchema, out: *mut *mut LaminarRecordBatch, ) -> i32
Expand 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 to ArrowArray struct (ownership transferred)
  • schema - Pointer to ArrowSchema struct (ownership transferred)
  • out - Pointer to receive the new batch handle

§Returns

LAMINAR_OK on success, or an error code.

§Safety

  • array and schema must be valid Arrow C Data Interface structs
  • Ownership is transferred - the structs will be released by this function
  • out must be a valid pointer