Expand description
The PCODEC Parquet compression codec: the page payload of spec/FORMAT.md.
compress turns the bytes Parquet would compress into a payload; decompress turns a
payload back into exactly those bytes. Decoding never needs the column type: the payload
says how it was written. The type hint given to compress only affects the ratio.
Structs§
- Options
- Encoder settings.
Enums§
- Error
- Why a payload could not be decoded (or an option was refused).
- Mode
- How a payload was written (spec section 4).
- Physical
Type - The Parquet physical types PCODEC models, with their Parquet
Typevalues.
Constants§
- CODEC_
ID CompressionCodecvalue of PCODEC in the Parquet footer.- DEFAULT_
LEVEL - pcodec compression level used when none is given.
- FORMAT_
VERSION - Payload format version this crate writes and reads.
- KV_KEY
- Footer key-value pair writers add to files with PCODEC columns.
- KV_
VALUE - Value of
KV_KEY. - MAX_
LEVEL - Highest pcodec compression level.
Functions§
- compress
- Encodes
srcas a payload. - decompress
- Decodes a payload that must produce exactly
expected_lenbytes. - decompress_
append - Decodes a payload that must produce exactly
expected_lenbytes, appending them toout. On an erroroutis left as it was (its capacity may have grown). - decompress_
into - Decodes a payload into
dst, which it must fill exactly. - mode_of
- The mode of a payload, after checking its version.