risingwave_
common
2.7.0-alpha
Module row_id
Module Items
Structs
Constants
Functions
Type Aliases
In risingwave_
common::
util
risingwave_common
::
util
Module
row_id
Copy item path
Source
Structs
ยง
Changelog
RowId
Generator
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.
RowId
Generator
RowIdGenerator
generates unique row ids using snowflake algorithm as following format:
Timestamp
Manager
๐
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