Struct arrow::ffi_stream::FFI_ArrowArrayStream
source · #[repr(C)]pub struct FFI_ArrowArrayStream {
pub get_schema: Option<unsafe extern "C" fn(arg1: *mut FFI_ArrowArrayStream, out: *mut FFI_ArrowSchema) -> c_int>,
pub get_next: Option<unsafe extern "C" fn(arg1: *mut FFI_ArrowArrayStream, out: *mut FFI_ArrowArray) -> c_int>,
pub get_last_error: Option<unsafe extern "C" fn(arg1: *mut FFI_ArrowArrayStream) -> *const c_char>,
pub release: Option<unsafe extern "C" fn(arg1: *mut FFI_ArrowArrayStream)>,
pub private_data: *mut c_void,
}
Expand description
ABI-compatible struct for ArrayStream
from C Stream Interface
See https://arrow.apache.org/docs/format/CStreamInterface.html#structure-definitions
This was created by bindgen
Fields§
§get_schema: Option<unsafe extern "C" fn(arg1: *mut FFI_ArrowArrayStream, out: *mut FFI_ArrowSchema) -> c_int>
§get_next: Option<unsafe extern "C" fn(arg1: *mut FFI_ArrowArrayStream, out: *mut FFI_ArrowArray) -> c_int>
§get_last_error: Option<unsafe extern "C" fn(arg1: *mut FFI_ArrowArrayStream) -> *const c_char>
§release: Option<unsafe extern "C" fn(arg1: *mut FFI_ArrowArrayStream)>
§private_data: *mut c_void
Implementations§
source§impl FFI_ArrowArrayStream
impl FFI_ArrowArrayStream
sourcepub fn new(batch_reader: Box<dyn RecordBatchReader>) -> Self
pub fn new(batch_reader: Box<dyn RecordBatchReader>) -> Self
Creates a new FFI_ArrowArrayStream
.
sourcepub fn empty() -> Self
pub fn empty() -> Self
Creates a new empty FFI_ArrowArrayStream. Used to import from the C Stream Interface.