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
sourceimpl 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.
Trait Implementations
sourceimpl Debug for FFI_ArrowArrayStream
impl Debug for FFI_ArrowArrayStream
Auto Trait Implementations
impl RefUnwindSafe for FFI_ArrowArrayStream
impl !Send for FFI_ArrowArrayStream
impl !Sync for FFI_ArrowArrayStream
impl Unpin for FFI_ArrowArrayStream
impl UnwindSafe for FFI_ArrowArrayStream
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more