[][src]Trait arrow::array::Array

pub trait Array: Debug + Send + Sync + ArrayEqual + JsonEqual {
    fn as_any(&self) -> &dyn Any;
fn data(&self) -> ArrayDataRef;
fn data_ref(&self) -> &ArrayDataRef; fn data_type(&self) -> &DataType { ... }
fn slice(&self, offset: usize, length: usize) -> ArrayRef { ... }
fn len(&self) -> usize { ... }
fn offset(&self) -> usize { ... }
fn is_null(&self, i: usize) -> bool { ... }
fn is_valid(&self, i: usize) -> bool { ... }
fn null_count(&self) -> usize { ... } }

Trait for dealing with different types of array at runtime when the type of the array is not known in advance

Required methods

fn as_any(&self) -> &dyn Any

Returns the array as Any so that it can be downcast to a specific implementation

fn data(&self) -> ArrayDataRef

Returns a reference-counted pointer to the data of this array

fn data_ref(&self) -> &ArrayDataRef

Returns a borrowed & reference-counted pointer to the data of this array

Loading content...

Provided methods

fn data_type(&self) -> &DataType

Returns a reference to the data type of this array

fn slice(&self, offset: usize, length: usize) -> ArrayRef

Returns a zero-copy slice of this array with the indicated offset and length.

fn len(&self) -> usize

Returns the length (i.e., number of elements) of this array

fn offset(&self) -> usize

Returns the offset of this array

fn is_null(&self, i: usize) -> bool

Returns whether the element at index i is null

fn is_valid(&self, i: usize) -> bool

Returns whether the element at index i is not null

fn null_count(&self) -> usize

Returns the total number of nulls in this array

Loading content...

Implementors

impl Array for BinaryArray[src]

impl Array for FixedSizeBinaryArray[src]

impl Array for FixedSizeListArray[src]

impl Array for ListArray[src]

impl Array for StringArray[src]

impl Array for StructArray[src]

fn len(&self) -> usize[src]

Returns the length (i.e., number of elements) of this array

impl<T: ArrowPrimitiveType> Array for PrimitiveArray<T>[src]

Loading content...