[−][src]Enum parquet::schema::types::Type
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
Fields of PrimitiveType
Fields of GroupType
basic_info: BasicTypeInfo
fields: Vec<TypePtr>
Methods
impl Type
[src]
pub fn primitive_type_builder(
name: &str,
physical_type: PhysicalType
) -> PrimitiveTypeBuilder
[src]
name: &str,
physical_type: PhysicalType
) -> PrimitiveTypeBuilder
Creates primitive type builder with provided field name and physical type.
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]
Returns BasicTypeInfo
information about the type.
pub fn name(&self) -> &str
[src]
Returns this type's field name.
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]
Gets physical type 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]
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]
Returns true
if this type is a primitive type, false
otherwise.
pub fn is_group(&self) -> bool
[src]
Returns true
if this type is a group type, false
otherwise.
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]
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 Clone for Type
[src]
impl PartialEq<Type> for Type
[src]
impl Debug for Type
[src]
impl StructuralPartialEq for Type
[src]
Auto Trait Implementations
impl !Send for Type
impl !Sync for Type
impl Unpin for Type
impl !UnwindSafe for Type
impl !RefUnwindSafe for Type
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> FromCast<T> for T
fn from_cast(t: T) -> T
impl<T, U> Cast<U> for T where
U: FromCast<T>,
U: FromCast<T>,
fn cast(self) -> U
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,