Expand description
Parquet metadata API
Users should use these structures to interact with Parquet metadata.
-
ParquetMetaData: Top level metadata container, read from the Parquet file footer. -
FileMetaData: File level metadata such as schema, row counts and version. -
RowGroupMetaData: Metadata for each Row Group with a File, such as location and number of rows, and column chunks. -
ColumnChunkMetaData: Metadata for each column chunk (primitive leaf) within a Row Group including encoding and compression information, number of values, statistics, etc. -
PageIndex: Metadata and statistics used to reduce page-level I/O.
Β§APIs for working with Parquet Metadata
The Parquet readers and writers in this crate handle reading and writing metadata into Parquet files. To work with metadata directly, the following APIs are available:
ParquetMetaDataReaderfor reading metadata from an I/O source (sync and async)ParquetMetaDataPushDecoderfor decoding from bytes without I/OParquetMetaDataWriterfor writing.
Β§Examples
Please see external_metadata.rs
ModulesΒ§
- footer_
tail π - memory π
- Memory calculations for
ParquetMetadata::memory_size - options π
- Options used to control metadata parsing
- page_
index - Page Index structures for efficient page-level skipping
- parser π
- Internal metadata parsing routines
- push_
decoder π - reader π
- thrift π
- This module is the bridge between a Parquet fileβs thrift encoded metadata and this crateβs Parquet metadata API. It contains objects and functions used to serialize/deserialize metadata objects into/from the Thrift compact protocol format as defined by the Parquet specification.
- writer π
StructsΒ§
- Column
Chunk Meta Data - Metadata for a column chunk.
- Column
Chunk Meta Data Builder - Builder for
ColumnChunkMetaData - Column
Index Builder - Builder for Parquet
ColumnIndex, part of the Parquet PageIndex - File
Meta Data - File level metadata for a Parquet file.
- Footer
Tail - Parsed Parquet footer tail (last 8 bytes of a Parquet file)
- KeyValue
- A key-value pair for
FileMetaData. - Level
Histogram - Histograms for repetition and definition levels.
- Offset
Index Builder - Builder for offset index, part of the Parquet PageIndex.
- Page
Encoding Stats - PageEncodingStats for a column chunk and data page.
- Parquet
Meta Data - Parsed metadata for a single Parquet file
- Parquet
Meta Data Builder - A builder for creating / manipulating
ParquetMetaData - Parquet
Meta Data Options - Options that can be set to control what parts of the Parquet file footer
metadata will be decoded and made present in the
ParquetMetaDatareturned byParquetMetaDataReaderandParquetMetaDataPushDecoder. - Parquet
Meta Data Push Decoder - A push decoder for
ParquetMetaData. - Parquet
Meta Data Reader - Reads
ParquetMetaDatafrom a byte stream, with either synchronous or asynchronous I/O. - Parquet
Meta Data Writer - Writes
ParquetMetaDatato a byte stream - RowGroup
Meta Data - Metadata for a row group
- RowGroup
Meta Data Builder - Builder for row group metadata.
- Sorting
Column - Sort order within a RowGroup of a leaf column
EnumsΒ§
- Page
Index Policy - Describes the policy for reading page indexes
- Parquet
Page πEncoding Stats - Internal representation of the page encoding stats in the
ColumnChunkMetaData. This is not publicly exposed, with different getters defined for each variant. - Parquet
Statistics Policy - Enum to control decoding of some Parquet statistics fields.
Type AliasesΒ§
- File
Meta Data Ptr - Reference counted pointer for
FileMetaData. - RowGroup
Meta Data Ptr - Reference counted pointer for
RowGroupMetaData.