arrow_array::ffi

Struct ImportedArrowArray

Source
struct ImportedArrowArray<'a> {
    array: &'a FFI_ArrowArray,
    data_type: DataType,
    owner: &'a Arc<FFI_ArrowArray>,
}

Fields§

§array: &'a FFI_ArrowArray§data_type: DataType§owner: &'a Arc<FFI_ArrowArray>

Implementations§

Source§

impl ImportedArrowArray<'_>

Source

fn consume(self) -> Result<ArrayData, ArrowError>

Source

fn consume_children(&self) -> Result<Vec<ArrayData>, ArrowError>

Source

fn consume_child( &self, index: usize, child_type: &DataType, ) -> Result<ArrayData, ArrowError>

Source

fn buffers( &self, can_contain_null_mask: bool, variadic: bool, ) -> Result<Vec<Buffer>, ArrowError>

returns all buffers, as organized by Rust (i.e. null buffer is skipped if it’s present in the spec of the type)

Source

fn buffer_len( &self, i: usize, variadic_buffer_lengths: &[i64], dt: &DataType, ) -> Result<usize, ArrowError>

Returns the length, in bytes, of the buffer i (indexed according to the C data interface) Rust implementation uses fixed-sized buffers, which require knowledge of their len. for variable-sized buffers, such as the second buffer of a stringArray, we need to fetch offset buffer’s len to build the second buffer.

Source

fn null_bit_buffer(&self) -> Option<Buffer>

returns the null bit buffer. Rust implementation uses a buffer that is not part of the array of buffers. The C Data interface’s null buffer is part of the array of buffers.

Source

fn dictionary(&self) -> Result<Option<ImportedArrowArray<'_>>, ArrowError>

Trait Implementations§

Source§

impl<'a> Debug for ImportedArrowArray<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for ImportedArrowArray<'a>

§

impl<'a> RefUnwindSafe for ImportedArrowArray<'a>

§

impl<'a> Send for ImportedArrowArray<'a>

§

impl<'a> Sync for ImportedArrowArray<'a>

§

impl<'a> Unpin for ImportedArrowArray<'a>

§

impl<'a> UnwindSafe for ImportedArrowArray<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,