pub struct TemporalIndexPut {
pub node_key: u128,
pub term: Vec<u8>,
pub commit_ts: CommitTs,
pub op: StorageOp,
pub visibility: VisibilityLabel,
pub begin: i128,
pub end: i128,
}Expand description
One staged temporal-index posting (compute-built or rebuild-derived; the O partition applies it verbatim).
Fields§
§node_key: u128Node start key this posting files the term under (the instant’s exact tick key for instants; a covering node’s start key for intervals).
term: Vec<u8>Encoded term bytes (a native temporal EncodedTerm).
commit_ts: CommitTsCluster commit timestamp (same domain as the hexastore version).
op: StorageOpPut or Delete.
visibility: VisibilityLabelCell-level visibility label.
begin: i128Exact interval start of the term (the truth, not the covering).
end: i128Exact interval end of the term (inclusive).
Implementations§
Source§impl TemporalIndexPut
impl TemporalIndexPut
Sourcepub fn encode_key(&self) -> Vec<u8> ⓘ
pub fn encode_key(&self) -> Vec<u8> ⓘ
Encode the versioned key: node_key ‖ term ‖ descending commit_ts.
Sourcepub fn encode_value(&self) -> Vec<u8> ⓘ
pub fn encode_value(&self) -> Vec<u8> ⓘ
Encode the value: op ‖ visibility ‖ begin ‖ end.
Sourcepub fn decode(key: &[u8], value: &[u8]) -> Result<Self, StorageError>
pub fn decode(key: &[u8], value: &[u8]) -> Result<Self, StorageError>
Build a posting from raw key/value bytes.
Sourcepub fn matches(&self, query: &TemporalQueryPredicate) -> bool
pub fn matches(&self, query: &TemporalQueryPredicate) -> bool
Exact interval check against a query predicate (the partition-side reject: a pure integer comparison over the value pair).
Trait Implementations§
Source§impl Clone for TemporalIndexPut
impl Clone for TemporalIndexPut
Source§fn clone(&self) -> TemporalIndexPut
fn clone(&self) -> TemporalIndexPut
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more