pub fn get_compression_level(access_freq: f64) -> StringExpand description
Get the compression level that would be selected for a given access frequency
§Arguments
access_freq- Access frequency in range [0.0, 1.0]
§Returns
String describing the compression level: “none”, “half”, “pq8”, “pq4”, or “binary”
§Example
const level = getCompressionLevel(0.9); // "none" (hot data)
const level2 = getCompressionLevel(0.5); // "half" (warm data)