Skip to main content

Crate tparquet_core

Crate tparquet_core 

Source
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).
PhysicalType
The Parquet physical types PCODEC models, with their Parquet Type values.

Constants§

CODEC_ID
CompressionCodec value 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 src as a payload.
decompress
Decodes a payload that must produce exactly expected_len bytes.
decompress_append
Decodes a payload that must produce exactly expected_len bytes, appending them to out. On an error out is 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.