Function process_raw

Source
pub unsafe fn process_raw(
    func: &mut Box<dyn TableFunction>,
    input_stream: i64,
) -> Result<i64>
Expand description

Wrapper over process method, the type of input_stream is *mut FFI_ArrowArrayStream. Due to the limitation of zngur, use i64 here as void* and casting to *mut FFI_ArrowArrayStream.

The input_stream should contain 0 or 1 RecordBatch

Returns may be nullptr. Otherwise, returns *mut FFI_ArrowArrayStream

ยงSAFETY

This function is unsafe because it dereferences a raw pointer and expects the caller to ensure that the pointer is valid and points to a Box<dyn TableFunction>.