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

pub trait Array: Send + Sync {
    fn as_any(&self) -> &dyn Any;
fn data(&self) -> ArrayDataRef;
fn data_ref(&self) -> &ArrayDataRef; fn data_type(&self) -> &DataType { ... }
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

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

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

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

Loading content...

Provided methods

Returns a reference to the data type of this array

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

Returns the offset of this array

Returns whether the element at index i is null

Returns whether the element at index i is not null

Returns the total number of nulls in this array

Loading content...

Implementors

impl Array for BinaryArray
[src]

impl Array for ListArray
[src]

impl Array for StructArray
[src]

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

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

Loading content...