pub enum ColumnCodec {
Show 16 variants
Auto,
AlpFastLanesLz4,
AlpRdLz4,
PcodecLz4,
DeltaFastLanesLz4,
FastLanesLz4,
FsstLz4,
AlpFastLanesRans,
DeltaFastLanesRans,
FsstRans,
Gorilla,
DoubleDelta,
Delta,
Lz4,
Zstd,
Raw,
}Expand description
Codec identifier for per-column compression selection.
Stored in partition schema metadata so the reader knows which decoder to use for each column file.
Variants§
Auto
Engine selects codec automatically based on column type and data distribution (analyzed at flush time).
AlpFastLanesLz4
f64 metrics: ALP (decimal→int) → FastLanes → lz4.
AlpRdLz4
f64 true doubles: ALP-RD (front-bit dict) → lz4.
PcodecLz4
f64/i64 complex: Pcodec → lz4.
DeltaFastLanesLz4
i64 timestamps/counters: Delta → FastLanes → lz4.
FastLanesLz4
i64/u32 raw integers: FastLanes → lz4.
FsstLz4
Strings/logs: FSST (substring dict) → lz4.
AlpFastLanesRans
f64 metrics cold: ALP → FastLanes → rANS.
DeltaFastLanesRans
i64 cold: Delta → FastLanes → rANS.
FsstRans
Strings cold: FSST → rANS.
Gorilla
Gorilla XOR encoding — legacy f64 codec.
DoubleDelta
DoubleDelta — legacy timestamp codec.
Delta
Delta + varint — legacy counter codec.
Lz4
LZ4 block compression — for string/log columns.
Zstd
Zstd — for cold/archived partitions.
Raw
No compression — for pre-compressed or symbol columns.
Implementations§
Source§impl ColumnCodec
impl ColumnCodec
pub fn is_compressed(&self) -> bool
Sourcepub fn is_cascading(&self) -> bool
pub fn is_cascading(&self) -> bool
Whether this is a cascading (multi-stage) codec.
Sourcepub fn is_cold_tier(&self) -> bool
pub fn is_cold_tier(&self) -> bool
Whether this codec uses rANS as terminal (cold tier).
pub fn as_str(&self) -> &'static str
Trait Implementations§
Source§impl Clone for ColumnCodec
impl Clone for ColumnCodec
Source§fn clone(&self) -> ColumnCodec
fn clone(&self) -> ColumnCodec
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more