Trait StructArrayTrait

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

    // Provided methods
    fn names(&self) -> &FieldNames { ... }
    fn field_info(&self, field: &Field) -> VortexResult<FieldInfo> { ... }
    fn dtypes(&self) -> Vec<DType> { ... }
    fn nfields(&self) -> usize { ... }
    fn maybe_null_field_by_name(&self, name: &str) -> Option<Array> { ... }
    fn maybe_null_field(&self, field: &Field) -> Option<Array> { ... }
}

Required Methods§

Source

fn maybe_null_field_by_idx(&self, idx: usize) -> Option<Array>

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

Source

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

Provided Methods§

Source

fn names(&self) -> &FieldNames

Source

fn field_info(&self, field: &Field) -> VortexResult<FieldInfo>

Source

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

Source

fn nfields(&self) -> usize

Source

fn maybe_null_field_by_name(&self, name: &str) -> Option<Array>

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

Source

fn maybe_null_field(&self, field: &Field) -> Option<Array>

Implementors§