Module row_id

Source

Structsยง

ChangelogRowIdGenerator
ChangelogRowIdGenerator generates unique changelog row ids using snowflake algorithm. Unlike RowIdGenerator, it maintains a separate sequence for each vnode and generates row ids based on the input vnode.
RowIdGenerator
RowIdGenerator generates unique row ids using snowflake algorithm as following format:
TimestampManager ๐Ÿ”’
Common timestamp management for row id generators.

Constantsยง

COMPAT_VNODE_BITS ๐Ÿ”’
The number of bits occupied by the vnode part of a row id in the previous version.
TIMESTAMP_SHIFT_BITS ๐Ÿ”’
The number of bits occupied by the vnode part and the sequence part of a row id.

Functionsยง

bit_for_vnode ๐Ÿ”’
The number of bits occupied by the vnode part of a row id.
compute_vnode_from_row_id
Compute vnode from the given row id.

Type Aliasesยง

RowId