Skip to main content

encode_key_native

Function encode_key_native 

Source
pub fn encode_key_native(
    _ty: TypeId,
    col: &NativeColumn,
    i: usize,
) -> Option<Vec<u8>>
Expand description

Index-key encoding for element i of a typed column — the per-element analogue of crate::memtable::Value::encode_key (big-endian ints, to_bits for floats, raw bytes for Bytes). Returns None for null slots so callers can skip them without constructing a Value. Used by the typed bulk-index path (Phase 14.2) to build HOT/bitmap keys with no Value enum and no per-row HashMap.