pub enum ParquetType {
    PrimitiveType {
        basic_info: BasicTypeInfo,
        logical_type: Option<LogicalType>,
        converted_type: Option<PrimitiveConvertedType>,
        physical_type: PhysicalType,
    },
    GroupType {
        basic_info: BasicTypeInfo,
        logical_type: Option<LogicalType>,
        converted_type: Option<GroupConvertedType>,
        fields: Vec<ParquetType, Global>,
    },
}
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

PrimitiveType

Fields

basic_info: BasicTypeInfo
logical_type: Option<LogicalType>
converted_type: Option<PrimitiveConvertedType>
physical_type: PhysicalType

GroupType

Fields

basic_info: BasicTypeInfo
logical_type: Option<LogicalType>
converted_type: Option<GroupConvertedType>

Implementations

Method to convert from Thrift.

Method to convert to Thrift.

Accessors

Returns BasicTypeInfo 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

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 ==. Read more

This method tests for !=.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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.