Struct parquet2::metadata::ColumnDescriptor
source · [−]pub struct ColumnDescriptor {
pub descriptor: Descriptor,
pub path_in_schema: Vec<String>,
pub base_type: ParquetType,
}
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.
Fields
descriptor: Descriptor
The descriptor this columns’ leaf.
path_in_schema: Vec<String>
The path of this column. For instance, “a.b.c.d”.
base_type: ParquetType
The ParquetType
this descriptor is a leaf of
Implementations
sourceimpl ColumnDescriptor
impl ColumnDescriptor
sourcepub fn new(
descriptor: Descriptor,
path_in_schema: Vec<String>,
base_type: ParquetType
) -> Self
pub fn new(
descriptor: Descriptor,
path_in_schema: Vec<String>,
base_type: ParquetType
) -> Self
Creates new descriptor for leaf-level column.
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)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more