Modules§
- Task-local storage for the epoch pair.
Structs§
Constants§
INVALID_EPOCH
defines the invalid epoch value.
Statics§
UNIX_RISINGWAVE_DATE_EPOCH
represents the risingwave date of the UNIX epoch: 2021-04-01T00:00:00Z.
Traits§
- There are numerous operations in our system’s unit tests that involve incrementing or decrementing the epoch. These extensions for u64 type are specifically used within the unit tests.
Functions§
- As most unit tests initialize a new epoch from a random value (e.g. 1, 2, 233 etc.), but the correct epoch in the system is a u64 with the last
EPOCH_AVAILABLE_BITS
bits set to 0. This method is to turn a a random epoch into a well shifted value.