Skip to main content

encode_sparse_row

Function encode_sparse_row 

Source
pub fn encode_sparse_row(
    columns: &[Column],
    primary_key_index: usize,
    row: &SparseRow,
) -> Vec<u8> ⓘ
Expand description

Encode one standalone sparse row canonically (SPEC.md §2.4, RFC §6.1). A row that does not match the column table, or that omits the primary key, is encoder misuse and panics (the full-row codec traps the same misuse).