Trait StructArrayTrait

Source
pub trait StructArrayTrait: Array {
    // Required methods
    fn maybe_null_field_by_idx(&self, idx: usize) -> VortexResult<ArrayRef>;
    fn project(&self, projection: &[FieldName]) -> VortexResult<ArrayRef>;

    // Provided methods
    fn names(&self) -> &FieldNames { ... }
    fn dtypes(&self) -> Vec<DType> { ... }
    fn nfields(&self) -> usize { ... }
    fn maybe_null_field_by_name(&self, name: &str) -> VortexResult<ArrayRef> { ... }
}

Required Methods§

Source

fn maybe_null_field_by_idx(&self, idx: usize) -> VortexResult<ArrayRef>

Return a field’s array by index, ignoring struct nullability

Source

fn project(&self, projection: &[FieldName]) -> VortexResult<ArrayRef>

Provided Methods§

Source

fn names(&self) -> &FieldNames

Source

fn dtypes(&self) -> Vec<DType>

Source

fn nfields(&self) -> usize

Source

fn maybe_null_field_by_name(&self, name: &str) -> VortexResult<ArrayRef>

Return a field’s array by name, ignoring struct nullability

Implementations§

Source§

impl dyn StructArrayTrait + '_

Source

pub fn fields(&self) -> impl Iterator<Item = ArrayRef> + '_

Implementors§