Trait vortex_array::variants::StructArrayTrait

source ·
pub trait StructArrayTrait: ArrayTrait {
    // Required methods
    fn field(&self, idx: usize) -> Option<ArrayData>;
    fn project(&self, projection: &[Field]) -> VortexResult<ArrayData>;

    // Provided methods
    fn names(&self) -> &FieldNames { ... }
    fn dtypes(&self) -> &[DType] { ... }
    fn nfields(&self) -> usize { ... }
    fn field_by_name(&self, name: &str) -> Option<ArrayData> { ... }
}

Required Methods§

source

fn field(&self, idx: usize) -> Option<ArrayData>

Return a field’s array by index

source

fn project(&self, projection: &[Field]) -> VortexResult<ArrayData>

Provided Methods§

source

fn names(&self) -> &FieldNames

source

fn dtypes(&self) -> &[DType]

source

fn nfields(&self) -> usize

source

fn field_by_name(&self, name: &str) -> Option<ArrayData>

Return a field’s array by name

Implementors§