Skip to main content

detect_codec

Function detect_codec 

Source
pub fn detect_codec(
    codec: ColumnCodec,
    type_hint: ColumnTypeHint,
) -> ColumnCodec
Expand description

Detect the optimal codec for a column based on its type and data.

When codec is not Auto, returns it unchanged. When Auto, analyzes the column type hint to select the best codec. For data-aware selection (ALP encodability, monotonicity detection), use detect_f64_codec() or detect_i64_codec() with actual values.