[−][src]Trait arrow::array::Array
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
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
Implementors
impl Array for BinaryArray
[src]
impl Array for BinaryArray
fn as_any(&self) -> &dyn Any | [src] |
fn data(&self) -> ArrayDataRef | [src] |
fn data_ref(&self) -> &ArrayDataRef | [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]
impl Array for ListArray
fn as_any(&self) -> &dyn Any | [src] |
fn data(&self) -> ArrayDataRef | [src] |
fn data_ref(&self) -> &ArrayDataRef | [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]
impl Array for StructArray
fn as_any(&self) -> &dyn Any | [src] |
fn data(&self) -> ArrayDataRef | [src] |
fn data_ref(&self) -> &ArrayDataRef | [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]
impl<T: ArrowPrimitiveType> Array for PrimitiveArray<T>
fn as_any(&self) -> &dyn Any | [src] |
fn data(&self) -> ArrayDataRef | [src] |
fn data_ref(&self) -> &ArrayDataRef | [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] |