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<'_>
impl ImportedArrowArray<'_>
fn consume(self) -> Result<ArrayData, ArrowError>
fn consume_children(&self) -> Result<Vec<ArrayData>, ArrowError>
fn consume_child( &self, index: usize, child_type: &DataType, ) -> Result<ArrayData, ArrowError>
Sourcefn buffers(
&self,
can_contain_null_mask: bool,
variadic: bool,
) -> Result<Vec<Buffer>, ArrowError>
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)
Sourcefn buffer_len(
&self,
i: usize,
variadic_buffer_lengths: &[i64],
dt: &DataType,
) -> Result<usize, ArrowError>
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.
Sourcefn null_bit_buffer(&self) -> Option<Buffer>
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.
fn dictionary(&self) -> Result<Option<ImportedArrowArray<'_>>, ArrowError>
Trait Implementations§
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> 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