Skip to main content

Module encoding

Module encoding 

Source
Expand description

Order-preserving key encoding (tuple layer) and row encoding for non-PK column storage.

Functionsยง

decode_composite_key
Decode a composite key into multiple values.
decode_key_value
Decode a single key value, returning the value and the number of bytes consumed.
decode_row
Decode a row into non-PK column values.
encode_composite_key
Encode a composite key (multiple values concatenated).
encode_key_value
Encode a single value into an order-preserving byte sequence.
encode_row
Encode non-PK column values into a row. Format: [col_count: u16][null_bitmap][per-column: data_type(u8) + data_len(u32) + data]