pub struct ArrowStream { /* private fields */ }Expand description
A handle to an Arrow C Data Interface ArrowArrayStream.
Arrow streams are typically created from the arrow crate or other Arrow
implementations that export the C Data Interface.
§Safety
The pointer must remain valid until the stream is unregistered or the
connection is closed. chDB does not take ownership (chdb_arrow_scan passes
is_owner = false).
Implementations§
Source§impl ArrowStream
impl ArrowStream
Sourcepub unsafe fn from_raw(stream: RawArrowArrayStream) -> Self
pub unsafe fn from_raw(stream: RawArrowArrayStream) -> Self
Create an ArrowStream from a raw ArrowArrayStream pointer.
§Safety
stream must be a valid, non-null ArrowArrayStream for the lifetime of
this handle (and until chDB unregisters the name).
§Arguments
stream- A raw pointer to anFFI_ArrowArrayStream
§Examples
use chdb_rust::arrow_stream::ArrowStream;
// Assuming you have a valid Arrow C Data Interface stream pointer
// let stream_ptr: *mut arrow::ffi_stream::FFI_ArrowArrayStream = ...;
// let arrow_stream = unsafe { ArrowStream::from_raw(stream_ptr) };Sourcepub fn as_raw(&self) -> RawArrowArrayStream
pub fn as_raw(&self) -> RawArrowArrayStream
Returns the raw pointer passed through to chdb_arrow_scan.
§Returns
Returns the raw ArrowArrayStream pointer as RawArrowArrayStream.
Trait Implementations§
Source§impl Clone for ArrowStream
impl Clone for ArrowStream
impl Copy for ArrowStream
Source§impl Debug for ArrowStream
impl Debug for ArrowStream
impl Send for ArrowStream
Auto Trait Implementations§
impl !Sync for ArrowStream
impl Forget for ArrowStream
impl Freeze for ArrowStream
impl Move for ArrowStream
impl RefUnwindSafe for ArrowStream
impl Unpin for ArrowStream
impl UnsafeUnpin for ArrowStream
impl UnwindSafe for ArrowStream
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