Expand description
Contains structs and methods to build Parquet schema and schema descriptors.
Structsยง
- Basic type info. This contains information such as the name of the type, the repetition level, the logical type and the kind of the type (group, primitive).
- Physical type for leaf-level primitive columns.
- Represents the location of a column in a Parquet schema
- A builder for group types. All attributes are optional except the name. Note that if not specified explicitly,
None
is used as the repetition of the group, which means it is a root (message) type. - A builder for primitive types. All attributes are optional except the name and physical type. Note that if not specified explicitly,
Repetition::OPTIONAL
is used. - Schema of a Parquet file.
Enumsยง
- Representation of a Parquet type.
Functionsยง
- build_
tree ๐ - Method to convert from Thrift.
- from_
thrift_ ๐helper Constructs a new Type from theelements
, starting at indexindex
. The first result is the starting index for the next Type after this one. If it is equal toelements.len()
, then this Type is the last one. The second result is the result Type. - Method to convert to Thrift.
- to_
thrift_ ๐helper Constructs list ofSchemaElement
from the schema using depth-first traversal. Here we assume that schema is always valid and starts with group type.
Type Aliasesยง
- Type alias for
Arc<ColumnDescriptor>
. - Type alias for
Arc<SchemaDescriptor>
. - Type alias for
Arc<Type>
.