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§
Provided Methods§
fn names(&self) -> &FieldNames
fn dtypes(&self) -> &[DType]
fn nfields(&self) -> usize
sourcefn field_by_name(&self, name: &str) -> Option<ArrayData>
fn field_by_name(&self, name: &str) -> Option<ArrayData>
Return a field’s array by name