Struct parquet2::schema::types::PrimitiveType
source · 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§
source§impl 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§
source§impl Clone for PrimitiveType
impl Clone for PrimitiveType
source§fn clone(&self) -> PrimitiveType
fn clone(&self) -> PrimitiveType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PrimitiveType
impl Debug for PrimitiveType
source§impl Hash for PrimitiveType
impl Hash for PrimitiveType
source§impl PartialEq<PrimitiveType> for PrimitiveType
impl PartialEq<PrimitiveType> for PrimitiveType
source§fn 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 ==
.