[][src]Struct arrow::array::StructArray

pub struct StructArray { /* fields omitted */ }

A nested array type where each child (called field) is represented by a separate array.

Implementations

impl StructArray[src]

pub fn column(&self, pos: usize) -> &ArrayRef[src]

Returns the field at pos.

pub fn num_columns(&self) -> usize[src]

Return the number of fields in this struct array

pub fn columns(&self) -> Vec<&ArrayRef>[src]

Returns the fields of the struct array

pub fn columns_ref(&self) -> Vec<ArrayRef>[src]

Returns child array refs of the struct array

pub fn column_names(&self) -> Vec<&str>[src]

Return field names in this struct array

pub fn column_by_name(&self, column_name: &str) -> Option<&ArrayRef>[src]

Return child array whose field name equals to column_name

Trait Implementations

impl Array for StructArray[src]

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

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

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

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

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

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

impl ArrayEqual for StructArray[src]

impl Debug for StructArray[src]

impl<'_> From<&'_ StructArray> for RecordBatch[src]

fn from(struct_array: &StructArray) -> Self[src]

Create a record batch from struct array.

This currently does not flatten and nested struct types

impl From<(Vec<(Field, Arc<dyn Array + 'static>)>, Buffer, usize)> for StructArray[src]

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

impl From<Vec<(Field, Arc<dyn Array + 'static>)>> for StructArray[src]

impl Into<StructArray> for RecordBatch[src]

impl JsonEqual for StructArray[src]

impl PartialEq<StructArray> for Value[src]

impl PartialEq<Value> for StructArray[src]

impl<'_> TryFrom<Vec<(&'_ str, Arc<dyn Array + 'static>)>> for StructArray[src]

type Error = ArrowError

The type returned in the event of a conversion error.

fn try_from(values: Vec<(&str, ArrayRef)>) -> Result<Self>[src]

builds a StructArray from a vector of names and arrays. This errors if the values have a different length. An entry is set to Null when all values are null.

Auto Trait Implementations

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