Expand description
Contains structs and methods to build Parquet schema and schema descriptors.
Structsยง
- Basic
Type Info - 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).
- Column
Descriptor - Physical type for leaf-level primitive columns.
- Column
Path - Represents the location of a column in a Parquet schema
- Group
Type Builder - 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. - Primitive
Type Builder - 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
Descriptor - Schema of a Parquet file.
Enumsยง
- Type
- Representation of a Parquet type.
Functionsยง
- build_
tree ๐ - check_
logical_ ๐type - Checks if the logical type is valid.
- from_
thrift - Method to convert from Thrift.
- from_
thrift_ ๐helper - Constructs a new Type from the
elements
, 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. - to_
thrift - Method to convert to Thrift.
- to_
thrift_ ๐helper - Constructs list of
SchemaElement
from the schema using depth-first traversal. Here we assume that schema is always valid and starts with group type.
Type Aliasesยง
- Column
Desc Ptr - Type alias for
Arc<ColumnDescriptor>
. - Schema
Desc Ptr - Type alias for
Arc<SchemaDescriptor>
. - TypePtr
- Type alias for
Arc<Type>
.