parquet::schema

Module types

Source
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 the elements, starting at index index. The first result is the starting index for the next Type after this one. If it is equal to elements.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 of SchemaElement from the schema using depth-first traversal. Here we assume that schema is always valid and starts with group type.

Type Aliasesยง