Struct parquet2::metadata::ColumnDescriptor
source · [−]pub struct ColumnDescriptor { /* private fields */ }
Expand description
A descriptor for leaf-level primitive columns. This encapsulates information such as definition and repetition levels and is used to re-assemble nested data.
Implementations
sourceimpl ColumnDescriptor
impl ColumnDescriptor
sourcepub fn new(
primitive_type: ParquetType,
max_def_level: i16,
max_rep_level: i16,
path_in_schema: Vec<String>,
base_type: ParquetType
) -> Self
pub fn new(
primitive_type: ParquetType,
max_def_level: i16,
max_rep_level: i16,
path_in_schema: Vec<String>,
base_type: ParquetType
) -> Self
Creates new descriptor for leaf-level column.
sourcepub fn max_def_level(&self) -> i16
pub fn max_def_level(&self) -> i16
Returns maximum definition level for this column.
sourcepub fn max_rep_level(&self) -> i16
pub fn max_rep_level(&self) -> i16
Returns maximum repetition level for this column.
pub fn path_in_schema(&self) -> &[String]
pub fn base_type(&self) -> &ParquetType
sourcepub fn type_(&self) -> &ParquetType
pub fn type_(&self) -> &ParquetType
Returns self type ParquetType
for this leaf column.
sourcepub fn physical_type(&self) -> &PhysicalType
pub fn physical_type(&self) -> &PhysicalType
Returns self type PhysicalType
for this leaf column.
Panic
This function panics if the corresponding ParquetType
is not a primitive type
Trait Implementations
sourceimpl Clone for ColumnDescriptor
impl Clone for ColumnDescriptor
sourcefn clone(&self) -> ColumnDescriptor
fn clone(&self) -> ColumnDescriptor
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ColumnDescriptor
impl Debug for ColumnDescriptor
sourceimpl PartialEq<ColumnDescriptor> for ColumnDescriptor
impl PartialEq<ColumnDescriptor> for ColumnDescriptor
sourcefn eq(&self, other: &ColumnDescriptor) -> bool
fn eq(&self, other: &ColumnDescriptor) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ColumnDescriptor) -> bool
fn ne(&self, other: &ColumnDescriptor) -> bool
This method tests for !=
.
impl StructuralPartialEq for ColumnDescriptor
Auto Trait Implementations
impl RefUnwindSafe for ColumnDescriptor
impl Send for ColumnDescriptor
impl Sync for ColumnDescriptor
impl Unpin for ColumnDescriptor
impl UnwindSafe for ColumnDescriptor
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more