#[repr(u8)]pub enum ColumnCodec {
Show 16 variants
Auto = 0,
AlpFastLanesLz4 = 1,
AlpRdLz4 = 2,
PcodecLz4 = 3,
DeltaFastLanesLz4 = 4,
FastLanesLz4 = 5,
FsstLz4 = 6,
AlpFastLanesRans = 7,
DeltaFastLanesRans = 8,
FsstRans = 9,
Gorilla = 10,
DoubleDelta = 11,
Delta = 12,
Lz4 = 13,
Zstd = 14,
Raw = 15,
}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 = 0
Engine selects codec automatically based on column type and data distribution (analyzed at flush time).
AlpFastLanesLz4 = 1
f64 metrics: ALP (decimal→int) → FastLanes → lz4.
AlpRdLz4 = 2
f64 true doubles: ALP-RD (front-bit dict) → lz4.
PcodecLz4 = 3
f64/i64 complex: Pcodec → lz4.
DeltaFastLanesLz4 = 4
i64 timestamps/counters: Delta → FastLanes → lz4.
FastLanesLz4 = 5
i64/u32 raw integers: FastLanes → lz4.
FsstLz4 = 6
Strings/logs: FSST (substring dict) → lz4.
AlpFastLanesRans = 7
f64 metrics cold: ALP → FastLanes → rANS.
DeltaFastLanesRans = 8
i64 cold: Delta → FastLanes → rANS.
FsstRans = 9
Strings cold: FSST → rANS.
Gorilla = 10
Gorilla XOR encoding — legacy f64 codec.
DoubleDelta = 11
DoubleDelta — legacy timestamp codec.
Delta = 12
Delta + varint — legacy counter codec.
Lz4 = 13
LZ4 block compression — for string/log columns.
Zstd = 14
Zstd — for cold/archived partitions.
Raw = 15
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