Class LilyPadUtils.KeyRecord<T extends Comparable<T>>
java.lang.Object
com.linkedin.venice.spark.consistency.LilyPadUtils.KeyRecord<T>
- Type Parameters:
T- the position type — must beComparableso the lily-pad algorithm can determine whether one DC's high-watermark covers another's position vector.
- Enclosing class:
- LilyPadUtils
Per-key snapshot of a single VT record, capturing the value, the upstream position vector
that the leader used for its DCR decision, the global high-watermark at that moment, and
the logical timestamp used by DCR to pick the winner.
-
Field Summary
FieldsModifier and TypeFieldDescriptionGlobal max upstream RT position per region at the moment this record was written, indexed by region ID.final longLogical timestamp used by Venice DCR; higher value wins.Upstream RT position per region, indexed by region ID.final IntegerHash of the raw value bytes for equality comparison, or null for DELETE (tombstone).final TThis record's position in the VT partition. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
valueHash
Hash of the raw value bytes for equality comparison, or null for DELETE (tombstone). -
upstreamRTPosition
Upstream RT position per region, indexed by region ID. -
highWatermark
Global max upstream RT position per region at the moment this record was written, indexed by region ID. -
logicalTimestamp
public final long logicalTimestampLogical timestamp used by Venice DCR; higher value wins. -
vtPosition
This record's position in the VT partition. Useful for forensic lookup when reporting inconsistencies.
-
-
Constructor Details
-
KeyRecord
-