Skip to main content

Module unified

Module unified 

Source
Expand description

Unified column encoding API with automatic encoder selection.

ColumnEncoder selects the best encoding for each column type and transparently falls back to PlainEncoder when the specialised encoder does not achieve at least 2× compression.

ColumnDecoder reads the EncodingType tag from an EncodedBlock and dispatches to the correct decoder.

§Wire format

[encoding_type: u8]
[payload …]

Structs§

ColumnDecoder
Unified column decoder that dispatches based on the EncodingType tag.
ColumnEncoder
Unified column encoder that auto-selects the best encoding per column type.
EncodedBlock
An encoded column block ready to be written to a segment.

Enums§

DecodedColumn
Typed column values returned by ColumnDecoder.
EncodingType
Discriminant tag stored as the first byte of every EncodedBlock.
TimestampEncoding
Which codec ColumnEncoder::encode_timestamps_with should use.