Struct arrow::array::GenericListArray[][src]

pub struct GenericListArray<OffsetSize> { /* fields omitted */ }

Implementations

impl<OffsetSize: OffsetSizeTrait> GenericListArray<OffsetSize>[src]

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

Returns a 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 unsafe fn value_unchecked(&self, i: usize) -> ArrayRef[src]

Returns ith value of this list array.

Safety

Caller must ensure that the index is within the array bounds

pub fn value(&self, i: usize) -> ArrayRef[src]

Returns ith value of this list array.

pub fn value_offsets(&self) -> &[OffsetSize]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

Returns the offset values in the offsets buffer

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

Returns the length for value at index i.

pub fn iter<'a>(&'a self) -> GenericListArrayIter<'a, OffsetSize>

Notable traits for GenericListArrayIter<'a, S>

impl<'a, S: OffsetSizeTrait> Iterator for GenericListArrayIter<'a, S> type Item = Option<ArrayRef>;
[src]

constructs a new iterator

pub fn from_iter_primitive<T, P, I>(iter: I) -> Self where
    T: ArrowPrimitiveType,
    P: AsRef<[Option<<T as ArrowPrimitiveType>::Native>]> + IntoIterator<Item = Option<<T as ArrowPrimitiveType>::Native>>,
    I: IntoIterator<Item = Option<P>>, 
[src]

Creates a GenericListArray from an iterator of primitive values

Example

let data = vec![
   Some(vec![Some(0), Some(1), Some(2)]),
   None,
   Some(vec![Some(3), None, Some(5)]),
   Some(vec![Some(6), Some(7)]),
];
let list_array = ListArray::from_iter_primitive::<Int32Type, _, _>(data);
println!("{:?}", list_array);

Trait Implementations

impl<OffsetSize: 'static + OffsetSizeTrait> Array for GenericListArray<OffsetSize>[src]

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

Returns the total number of bytes of memory occupied by the buffers owned by this ListArray.

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

Returns the total number of bytes of memory occupied physically by this ListArray.

impl<OffsetSize: OffsetSizeTrait> Debug for GenericListArray<OffsetSize>[src]

impl<OffsetSize: OffsetSizeTrait> From<ArrayData> for GenericListArray<OffsetSize>[src]

impl<T: BinaryOffsetSizeTrait> From<GenericListArray<T>> for GenericBinaryArray<T>[src]

impl<T: StringOffsetSizeTrait> From<GenericListArray<T>> for GenericStringArray<T>[src]

impl<OffsetSize: OffsetSizeTrait> JsonEqual for GenericListArray<OffsetSize>[src]

impl<OffsetSize: OffsetSizeTrait> PartialEq<GenericListArray<OffsetSize>> for GenericListArray<OffsetSize>[src]

impl<OffsetSize: OffsetSizeTrait> PartialEq<Value> for GenericListArray<OffsetSize>[src]

Auto Trait Implementations

impl<OffsetSize> !RefUnwindSafe for GenericListArray<OffsetSize>

impl<OffsetSize> Send for GenericListArray<OffsetSize>

impl<OffsetSize> Sync for GenericListArray<OffsetSize>

impl<OffsetSize> Unpin for GenericListArray<OffsetSize>

impl<OffsetSize> !UnwindSafe for GenericListArray<OffsetSize>

Blanket Implementations

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

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

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

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<V, T> VZip<V> for T where
    V: MultiLane<T>,