Struct parquet::schema::types::SchemaDescriptor
source · pub struct SchemaDescriptor { /* private fields */ }
Expand description
Schema of a Parquet file.
Encapsulates the file’s schema (Type
) and ColumnDescriptor
s for
each primitive (leaf) column.
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
.
sourcepub fn root_schema_ptr(&self) -> TypePtr
pub fn root_schema_ptr(&self) -> TypePtr
Returns schema as TypePtr
for cheap cloning.
Trait Implementations§
source§impl Debug for SchemaDescriptor
impl Debug for SchemaDescriptor
source§impl PartialEq for SchemaDescriptor
impl PartialEq for SchemaDescriptor
impl StructuralPartialEq for SchemaDescriptor
Auto Trait Implementations§
impl Freeze for SchemaDescriptor
impl RefUnwindSafe for SchemaDescriptor
impl Send for SchemaDescriptor
impl Sync for SchemaDescriptor
impl Unpin for SchemaDescriptor
impl UnwindSafe for SchemaDescriptor
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more