Enum parquet::schema::types::Type [−][src]
pub enum Type { PrimitiveType { basic_info: BasicTypeInfo, physical_type: PhysicalType, type_length: i32, scale: i32, precision: i32, }, GroupType { basic_info: BasicTypeInfo, fields: Vec<TypePtr>, }, }
Expand description
Representation of a Parquet type.
Used to describe primitive leaf fields and structs, including top-level schema.
Note that the top-level schema type is represented using GroupType
whose
repetition is None
.
Variants
Show fields
Fields of PrimitiveType
Show fields
Fields of GroupType
basic_info: BasicTypeInfo
fields: Vec<TypePtr>
Implementations
impl Type
[src]
impl Type
[src]pub fn primitive_type_builder(
name: &str,
physical_type: PhysicalType
) -> PrimitiveTypeBuilder<'_>
[src]
pub fn primitive_type_builder(
name: &str,
physical_type: PhysicalType
) -> PrimitiveTypeBuilder<'_>
[src]Creates primitive type builder with provided field name and physical type.
pub fn group_type_builder(name: &str) -> GroupTypeBuilder<'_>
[src]
pub fn group_type_builder(name: &str) -> GroupTypeBuilder<'_>
[src]Creates group type builder with provided column name.
pub fn get_basic_info(&self) -> &BasicTypeInfo
[src]
pub fn get_basic_info(&self) -> &BasicTypeInfo
[src]Returns BasicTypeInfo
information about the type.
pub fn get_fields(&self) -> &[TypePtr]
[src]
pub fn get_fields(&self) -> &[TypePtr]
[src]Gets the fields from this group type. Note that this will panic if called on a non-group type.
pub fn get_physical_type(&self) -> PhysicalType
[src]
pub fn get_physical_type(&self) -> PhysicalType
[src]Gets physical type of this primitive type. Note that this will panic if called on a non-primitive type.
pub fn get_precision(&self) -> i32
[src]
pub fn get_precision(&self) -> i32
[src]Gets precision of this primitive type. Note that this will panic if called on a non-primitive type.
pub fn get_scale(&self) -> i32
[src]
pub fn get_scale(&self) -> i32
[src]Gets scale of this primitive type. Note that this will panic if called on a non-primitive type.
pub fn check_contains(&self, sub_type: &Type) -> bool
[src]
pub fn check_contains(&self, sub_type: &Type) -> bool
[src]Checks if sub_type
schema is part of current schema.
This method can be used to check if projected columns are part of the root schema.
pub fn is_primitive(&self) -> bool
[src]
pub fn is_primitive(&self) -> bool
[src]Returns true
if this type is a primitive type, false
otherwise.
pub fn is_schema(&self) -> bool
[src]
pub fn is_schema(&self) -> bool
[src]Returns true
if this type is the top-level schema type (message type).
pub fn is_optional(&self) -> bool
[src]
pub fn is_optional(&self) -> bool
[src]Returns true
if this type is repeated or optional.
If this type doesn’t have repetition defined, we still treat it as optional.
Trait Implementations
impl StructuralPartialEq for Type
[src]
Auto Trait Implementations
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,