pub enum ParquetType {
    PrimitiveType(PrimitiveType),
    GroupType {
        field_info: FieldInfo,
        logical_type: Option<GroupLogicalType>,
        converted_type: Option<GroupConvertedType>,
        fields: Vec<ParquetType>,
    },
}
Expand description

Representation of a Parquet type describing primitive and nested fields, including the top-level schema of the parquet file.

Variants§

§

PrimitiveType(PrimitiveType)

§

GroupType

Fields

§field_info: FieldInfo
§logical_type: Option<GroupLogicalType>
§converted_type: Option<GroupConvertedType>
§fields: Vec<ParquetType>

Implementations§

Method to convert from Thrift.

Accessors

Returns FieldInfo information about the type.

Returns this type’s field name.

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.

Constructors

Error

Errors iff the combination of physical, logical and coverted type is not valid.

Helper method to create a ParquetType::PrimitiveType optional field with no logical or converted types.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==.
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.