Struct deltalake::datafusion::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 new(tp: Arc<Type>) -> SchemaDescriptor
pub fn new(tp: Arc<Type>) -> SchemaDescriptor
Creates new schema descriptor from Parquet schema.
sourcepub fn column(&self, i: usize) -> Arc<ColumnDescriptor>
pub fn column(&self, i: usize) -> Arc<ColumnDescriptor>
Returns ColumnDescriptor
for a field position.
sourcepub fn columns(&self) -> &[Arc<ColumnDescriptor>]
pub fn columns(&self) -> &[Arc<ColumnDescriptor>]
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) -> Arc<Type>
pub fn get_column_root_ptr(&self, i: usize) -> Arc<Type>
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
.
pub fn root_schema_ptr(&self) -> Arc<Type>
Trait Implementations§
source§impl Debug for SchemaDescriptor
impl Debug for SchemaDescriptor
source§impl PartialEq for SchemaDescriptor
impl PartialEq for SchemaDescriptor
source§fn eq(&self, other: &SchemaDescriptor) -> bool
fn eq(&self, other: &SchemaDescriptor) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.