Trait arrow::ffi::ArrowArrayRef[][src]

pub trait ArrowArrayRef {
    fn owner(&self) -> &Arc<FFI_ArrowArray>;
fn array(&self) -> &FFI_ArrowArray;
fn schema(&self) -> &FFI_ArrowSchema;
fn data_type(&self) -> Result<DataType>; fn to_data(&self) -> Result<ArrayData> { ... }
fn buffers(&self) -> Result<Vec<Buffer>> { ... }
fn buffer_len(&self, i: usize) -> Result<usize> { ... }
fn null_bit_buffer(&self) -> Option<Buffer> { ... }
fn child(&self, index: usize) -> ArrowArrayChild<'_> { ... } }

Required methods

Provided methods

fn to_data(&self) -> Result<ArrayData>[src]

fn buffers(&self) -> Result<Vec<Buffer>>[src]

returns all buffers, as organized by Rust (i.e. null buffer is skipped)

fn buffer_len(&self, i: usize) -> Result<usize>[src]

Returns the length, in bytes, of the buffer i (indexed according to the C data interface)

fn null_bit_buffer(&self) -> Option<Buffer>[src]

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 child(&self, index: usize) -> ArrowArrayChild<'_>[src]

Implementors

impl ArrowArrayRef for ArrowArray[src]

fn data_type(&self) -> Result<DataType>[src]

the data_type as declared in the schema

fn array(&self) -> &FFI_ArrowArray[src]

fn schema(&self) -> &FFI_ArrowSchema[src]

fn owner(&self) -> &Arc<FFI_ArrowArray>[src]

impl<'a> ArrowArrayRef for ArrowArrayChild<'a>[src]

fn data_type(&self) -> Result<DataType>[src]

the data_type as declared in the schema

fn array(&self) -> &FFI_ArrowArray[src]

fn schema(&self) -> &FFI_ArrowSchema[src]

fn owner(&self) -> &Arc<FFI_ArrowArray>[src]