pub struct ArrowSchema { /* private fields */ }Expand description
A handle to an Arrow C Data Interface ArrowSchema.
Arrow schemas define the structure of Arrow data.
§Safety
The pointer must remain valid through registration and any queries that read the registered stream.
Implementations§
Source§impl ArrowSchema
impl ArrowSchema
Sourcepub unsafe fn from_raw(schema: RawArrowSchema) -> Self
pub unsafe fn from_raw(schema: RawArrowSchema) -> Self
Create an ArrowSchema from a raw ArrowSchema pointer.
§Safety
schema must be a valid, non-null ArrowSchema pointer.
§Arguments
schema- A raw pointer to anFFI_ArrowSchema
§Examples
use chdb_rust::arrow_stream::ArrowSchema;
// Assuming you have a valid Arrow C Data Interface schema pointer
// let schema_ptr: *mut arrow::ffi::FFI_ArrowSchema = ...;
// let arrow_schema = unsafe { ArrowSchema::from_raw(schema_ptr) };Sourcepub fn as_raw(&self) -> RawArrowSchema
pub fn as_raw(&self) -> RawArrowSchema
Returns the raw pointer passed through to chdb_arrow_array_scan.
§Returns
Returns the raw ArrowSchema pointer.
Trait Implementations§
Source§impl Clone for ArrowSchema
impl Clone for ArrowSchema
impl Copy for ArrowSchema
Source§impl Debug for ArrowSchema
impl Debug for ArrowSchema
impl Send for ArrowSchema
Auto Trait Implementations§
impl !Sync for ArrowSchema
impl Forget for ArrowSchema
impl Freeze for ArrowSchema
impl Move for ArrowSchema
impl RefUnwindSafe for ArrowSchema
impl Unpin for ArrowSchema
impl UnsafeUnpin for ArrowSchema
impl UnwindSafe for ArrowSchema
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