pub struct ArrowArray { /* private fields */ }Expand description
A handle to an Arrow C Data Interface ArrowArray.
Arrow arrays contain the actual data in Arrow format.
§Safety
The pointer must remain valid through registration and any queries that read the registered stream.
Implementations§
Source§impl ArrowArray
impl ArrowArray
Sourcepub unsafe fn from_raw(array: RawArrowArray) -> Self
pub unsafe fn from_raw(array: RawArrowArray) -> Self
Create an ArrowArray from a raw ArrowArray pointer.
§Safety
array must be a valid, non-null ArrowArray pointer.
§Arguments
array- A raw pointer to anFFI_ArrowArray
§Examples
use chdb_rust::arrow_stream::ArrowArray;
// Assuming you have a valid Arrow C Data Interface array pointer
// let array_ptr: *mut arrow::ffi::FFI_ArrowArray = ...;
// let arrow_array = unsafe { ArrowArray::from_raw(array_ptr) };Sourcepub fn as_raw(&self) -> RawArrowArray
pub fn as_raw(&self) -> RawArrowArray
Returns the raw pointer passed through to chdb_arrow_array_scan.
§Returns
Returns the raw ArrowArray pointer.
Trait Implementations§
Source§impl Clone for ArrowArray
impl Clone for ArrowArray
impl Copy for ArrowArray
Source§impl Debug for ArrowArray
impl Debug for ArrowArray
impl Send for ArrowArray
Auto Trait Implementations§
impl !Sync for ArrowArray
impl Forget for ArrowArray
impl Freeze for ArrowArray
impl Move for ArrowArray
impl RefUnwindSafe for ArrowArray
impl Unpin for ArrowArray
impl UnsafeUnpin for ArrowArray
impl UnwindSafe for ArrowArray
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more