Skip to main content

Module interval

Module interval 

Source
Expand description

Bitemporal interval types.

Two orthogonal time dimensions:

  • Valid time — application time. Client/device-assigned. Stored in value payload.
  • System time — Origin time. Derived from WAL LSN at Raft commit. Stored in key.

Both use closed-open semantics [from, to). The open-upper sentinel is OPEN_UPPER (i64::MAX), which represents “still current / never closed”.

Structs§

BitemporalInterval
A two-dimensional interval carrying both valid-time and system-time bounds.

Constants§

OPEN_UPPER
Sentinel value marking an interval’s upper bound as open (“until further notice”).