[−][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 BinaryArrayfn as_any(&self) -> &dyn Any[src]
fn as_any(&self) -> &dyn Anyfn data(&self) -> ArrayDataRef[src]
fn data(&self) -> ArrayDataReffn data_ref(&self) -> &ArrayDataRef[src]
fn data_ref(&self) -> &ArrayDataReffn data_type(&self) -> &DataType[src]
fn data_type(&self) -> &DataTypefn len(&self) -> usize[src]
fn len(&self) -> usizefn offset(&self) -> usize[src]
fn offset(&self) -> usizefn is_null(&self, i: usize) -> bool[src]
fn is_null(&self, i: usize) -> boolfn is_valid(&self, i: usize) -> bool[src]
fn is_valid(&self, i: usize) -> boolfn null_count(&self) -> usize[src]
fn null_count(&self) -> usizeimpl Array for ListArray[src]
impl Array for ListArrayfn as_any(&self) -> &dyn Any[src]
fn as_any(&self) -> &dyn Anyfn data(&self) -> ArrayDataRef[src]
fn data(&self) -> ArrayDataReffn data_ref(&self) -> &ArrayDataRef[src]
fn data_ref(&self) -> &ArrayDataReffn data_type(&self) -> &DataType[src]
fn data_type(&self) -> &DataTypefn len(&self) -> usize[src]
fn len(&self) -> usizefn offset(&self) -> usize[src]
fn offset(&self) -> usizefn is_null(&self, i: usize) -> bool[src]
fn is_null(&self, i: usize) -> boolfn is_valid(&self, i: usize) -> bool[src]
fn is_valid(&self, i: usize) -> boolfn null_count(&self) -> usize[src]
fn null_count(&self) -> usizeimpl Array for StructArray[src]
impl Array for StructArrayfn as_any(&self) -> &dyn Any[src]
fn as_any(&self) -> &dyn Anyfn data(&self) -> ArrayDataRef[src]
fn data(&self) -> ArrayDataReffn data_ref(&self) -> &ArrayDataRef[src]
fn data_ref(&self) -> &ArrayDataReffn len(&self) -> usize[src]
fn len(&self) -> usizeReturns the length (i.e., number of elements) of this array
fn data_type(&self) -> &DataType[src]
fn data_type(&self) -> &DataTypefn offset(&self) -> usize[src]
fn offset(&self) -> usizefn is_null(&self, i: usize) -> bool[src]
fn is_null(&self, i: usize) -> boolfn is_valid(&self, i: usize) -> bool[src]
fn is_valid(&self, i: usize) -> boolfn null_count(&self) -> usize[src]
fn null_count(&self) -> usizeimpl<T: ArrowPrimitiveType> Array for PrimitiveArray<T>[src]
impl<T: ArrowPrimitiveType> Array for PrimitiveArray<T>fn as_any(&self) -> &dyn Any[src]
fn as_any(&self) -> &dyn Anyfn data(&self) -> ArrayDataRef[src]
fn data(&self) -> ArrayDataReffn data_ref(&self) -> &ArrayDataRef[src]
fn data_ref(&self) -> &ArrayDataReffn data_type(&self) -> &DataType[src]
fn data_type(&self) -> &DataTypefn len(&self) -> usize[src]
fn len(&self) -> usizefn offset(&self) -> usize[src]
fn offset(&self) -> usizefn is_null(&self, i: usize) -> bool[src]
fn is_null(&self, i: usize) -> boolfn is_valid(&self, i: usize) -> bool[src]
fn is_valid(&self, i: usize) -> boolfn null_count(&self) -> usize[src]
fn null_count(&self) -> usize