Module dict

Source
Expand description

Key dictionary of a shard.

Structsยง

DictBlock ๐Ÿ”’
A block in the key dictionary.
DictBuilderReader
Reader to scan the KeyDictBuilder.
KeyBuffer ๐Ÿ”’
Buffer to store unsorted primary keys.
KeyDict
A key dictionary.
KeyDictBuilder
Builder to build a key dictionary.

Constantsยง

MAX_KEYS_PER_BLOCK ๐Ÿ”’
Maximum keys in a DictBlock.

Functionsยง

compute_pk_weights ๐Ÿ”’
Returns pk weights to sort a data part and replaces pk indices.

Type Aliasesยง

KeyDictRef
PkIndexMap ๐Ÿ”’
The key is mcmp-encoded primary keys, while the values are the pk index and optionally sparsely encoded primary keys.