Skip to main content

Module sparse

Module sparse 

Source

Structsยง

FieldWithId
Field with column id.
SparseEncoder
A special encoder for memtable.
SparseOffsetsCache
A lazily populated cache of tag column offsets inside a sparse primary key.
SparsePrimaryKeyCodec
A codec for sparse key of metrics.
SparsePrimaryKeyCodecInner ๐Ÿ”’
SparseValues
Sparse values representation.

Constantsยง

COLUMN_ID_ENCODE_SIZE
The size of the column id in the encoded sparse row.
RESERVED_COLUMN_ID_TABLE_ID
The column id of the table id.
RESERVED_COLUMN_ID_TSID
The column id of the tsid.
SPARSE_OFFSETS_INLINE_CAP ๐Ÿ”’
Inline capacity for the small-vec fast path of SparseOffsetsCache.
TABLE_ID_VALUE_OFFSET ๐Ÿ”’
Byte offset to the table_id value (after its 4-byte column id).
TAGS_START_OFFSET ๐Ÿ”’
Byte offset where tag columns start (after 9-byte table_id + 13-byte tsid entries).
TSID_VALUE_OFFSET ๐Ÿ”’
Byte offset to the tsid value (after 9-byte table_id entry + 4-byte tsid column id).