Package dev.hardwood.metadata
Low-level Parquet file metadata types that mirror the Thrift definitions.
These types provide direct access to the metadata structures stored in
a Parquet file footer. For a higher-level schema representation with
computed definition and repetition levels, see
dev.hardwood.schema.
The record types in this package other than the LogicalType records,
FieldPath and SortingColumn (e.g. FileMetaData, RowGroup,
ColumnChunk, Statistics) are read-only views of the metadata in a
Parquet file: Hardwood constructs them while parsing, and callers consume
them through their accessors. The LogicalType records, FieldPath and
SortingColumn are built through their factories. As for every public
record, the canonical constructors are not part of the supported API, and a
minor release may add or restructure components, keeping the accessors.
- See Also:
-
ClassDescriptionColumn chunk metadata.Column index for a column chunk, providing per-page min/max statistics for page-level filtering.Ordering of min/max values across pages.Metadata for a column chunk.The ordering used for a leaf column's
min/maxstatistics, decoded from theFileMetaData.column_ordersunion.Compression codecs supported by Parquet.Legacy converted types in Parquet schema (used by PyArrow for LIST/MAP annotation).Encoding types for Parquet data.Path from the root schema to a leaf column, represented as a list of field names.Top-level file metadata for a Parquet file.Logical types that provide semantic meaning to physical types.BSON document stored as a byte array.Calendar date (days since Unix epoch).Decimal with fixed precision and scale.Geodesic formulations to model and compute the shortest path on Earth.Enum stored as a UTF-8 string.File reference logical type.IEEE 754 half-precision (binary16) floating point, stored as a 2-byteFIXED_LEN_BYTE_ARRAYin little-endian byte order.Geography type with configurable CRSGeometry type with configurable CRSInterval stored as a 12-byte fixed-length byte array (months, days, millis).Integer type with a specific bit width and signedness.JSON document stored as a UTF-8 string.List (repeated element) logical type.Map (key-value pairs) logical type.TheUNKNOWNannotation: a column whose every value is null.UTF-8 encoded string.Timestamp with configurable precision and UTC adjustment.Time of day with configurable precision and UTC adjustment.Resolution of time and timestamp logical types.UUID stored as a 16-byte fixed-length byte array.Variant (self-describing, semi-structured) logical type per the Parquet Variant spec.Offset index for a column chunk, providing page locations for direct lookup.The number of pages a writer produced for one combination of page type and encoding within a column chunk.Location of a data page within a column chunk.The kind of page stored in a column chunk.The parsed footer of one file, as aMetadataSourcehands it to a reader.Physical types supported by Parquet format.Field repetition types in Parquet schema.Row group metadata.Schema element in Parquet file metadata.Size statistics for a column chunk: the unencoded size of itsBYTE_ARRAYdata and its repetition- and definition-level histograms.One column of the order a row group's rows are sorted in: the column, its direction, and where its nulls go.Where a sorting column's nulls go relative to its values.Column chunk statistics for min/max values, null count, and distinct count.