Skip to main content

laminar_batch_export_column

Function laminar_batch_export_column 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn laminar_batch_export_column( batch: *mut LaminarRecordBatch, column_index: usize, out_array: *mut FFI_ArrowArray, out_schema: *mut FFI_ArrowSchema, ) -> i32
Expand description

Export a single column from a RecordBatch to the Arrow C Data Interface.

§Arguments

  • batch - Record batch containing the column
  • column_index - Zero-based index of the column to export
  • out_array - Pointer to caller-allocated ArrowArray struct
  • out_schema - Pointer to caller-allocated ArrowSchema struct

§Returns

LAMINAR_OK on success, or an error code.

§Safety

  • batch must be a valid batch handle
  • column_index must be less than the number of columns
  • out_array and out_schema must be valid pointers
  • Caller must eventually call the release callbacks