Struct parquet::schema::types::SchemaDescriptor
source · pub struct SchemaDescriptor { /* private fields */ }
Expand description
A schema descriptor. This encapsulates the top-level schemas for all the columns, as well as all descriptors for all the primitive columns.
Implementations§
source§impl SchemaDescriptor
impl SchemaDescriptor
sourcepub fn column(&self, i: usize) -> ColumnDescPtr
pub fn column(&self, i: usize) -> ColumnDescPtr
Returns ColumnDescriptor
for a field position.
sourcepub fn columns(&self) -> &[ColumnDescPtr]
pub fn columns(&self) -> &[ColumnDescPtr]
Returns slice of ColumnDescriptor
.
sourcepub fn num_columns(&self) -> usize
pub fn num_columns(&self) -> usize
Returns number of leaf-level columns.
sourcepub fn get_column_root(&self, i: usize) -> &Type
pub fn get_column_root(&self, i: usize) -> &Type
Returns column root Type
for a leaf position.
sourcepub fn get_column_root_ptr(&self, i: usize) -> TypePtr
pub fn get_column_root_ptr(&self, i: usize) -> TypePtr
Returns column root Type
pointer for a leaf
position.
sourcepub fn get_column_root_idx(&self, leaf: usize) -> usize
pub fn get_column_root_idx(&self, leaf: usize) -> usize
Returns the index of the root column for a field position
sourcepub fn root_schema(&self) -> &Type
pub fn root_schema(&self) -> &Type
Returns schema as Type
.