pub struct PrimitiveType {
pub field_info: FieldInfo,
pub logical_type: Option<PrimitiveLogicalType>,
pub converted_type: Option<PrimitiveConvertedType>,
pub physical_type: PhysicalType,
}
Expand description
The complete description of a parquet column
Fields
field_info: FieldInfo
The fields’ generic information
logical_type: Option<PrimitiveLogicalType>
The optional logical type
converted_type: Option<PrimitiveConvertedType>
The optional converted type
physical_type: PhysicalType
The physical type
Implementations
sourceimpl PrimitiveType
impl PrimitiveType
sourcepub fn from_physical(name: String, physical_type: PhysicalType) -> Self
pub fn from_physical(name: String, physical_type: PhysicalType) -> Self
Helper method to create an optional field with no logical or converted types.
Trait Implementations
sourceimpl Clone for PrimitiveType
impl Clone for PrimitiveType
sourcefn clone(&self) -> PrimitiveType
fn clone(&self) -> PrimitiveType
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 PrimitiveType
impl Debug for PrimitiveType
sourceimpl Hash for PrimitiveType
impl Hash for PrimitiveType
sourceimpl PartialEq<PrimitiveType> for PrimitiveType
impl PartialEq<PrimitiveType> for PrimitiveType
sourcefn eq(&self, other: &PrimitiveType) -> bool
fn eq(&self, other: &PrimitiveType) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PrimitiveType) -> bool
fn ne(&self, other: &PrimitiveType) -> bool
This method tests for !=
.
impl Eq for PrimitiveType
impl StructuralEq for PrimitiveType
impl StructuralPartialEq for PrimitiveType
Auto Trait Implementations
impl RefUnwindSafe for PrimitiveType
impl Send for PrimitiveType
impl Sync for PrimitiveType
impl Unpin for PrimitiveType
impl UnwindSafe for PrimitiveType
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