Skip to main content

Module adaptive

Module adaptive 

Source
Expand description

Adaptive encoding selection — samples data to choose the optimal encoding.

AdaptiveSelector examines the first N values (default: 1024) of a column to estimate which encoder will achieve the best compression ratio, then encodes the full column with that encoder.

§Decision matrix

PatternSelected encoding
All values identicalRLE
Periodic floatsChimp128
Regular intervals (i64)Delta-of-delta
Narrow-range integersFrame-of-Reference (FOR)
Slowly varying floatsChimp128 / Chimp
Random floatsGorilla → Plain fallback
Low-cardinality stringsDictionary
High-cardinality stringsPlain
BooleansBitmap (always)

Structs§

AdaptiveSelector
Adaptive encoding selector.

Enums§

FloatPattern
Result of analyzing a float sample.
IntegerPattern
Result of analyzing an integer sample.
StringPattern
Result of analyzing a string sample.