[][src]Struct arrow::array::ListArray

pub struct ListArray { /* fields omitted */ }

A list array where each element is a variable-sized sequence of values with the same type.

Methods

impl ListArray[src]

pub fn values(&self) -> ArrayRef[src]

Returns an reference to the values of this list.

pub fn value_type(&self) -> DataType[src]

Returns a clone of the value type of this list.

pub fn value_offset(&self, i: usize) -> i32[src]

Returns the offset for value at index i.

Note this doesn't do any bound checking, for performance reason.

pub fn value_length(&self, i: usize) -> i32[src]

Returns the length for value at index i.

Note this doesn't do any bound checking, for performance reason.

Trait Implementations

impl Array for ListArray[src]

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

Returns a reference to the data type of this array

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

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

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

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

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

Returns the offset of this array

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

Returns whether the element at index i is null

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

Returns whether the element at index i is not null

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

Returns the total number of nulls in this array

impl From<Arc<ArrayData>> for ListArray[src]

Constructs a ListArray from an array data reference.

impl From<ListArray> for BinaryArray[src]

Creates a BinaryArray from List<u8> array

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> FromCast<T> for T[src]

impl<T, U> Cast<U> for T where
    U: FromCast<T>, 
[src]