[][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

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 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]

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

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

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

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

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

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

impl Array for ListArray
[src]

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

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

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

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

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

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

impl Array for StructArray
[src]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Loading content...