Package velox.api.layer1.dynamichistory
Interface LinearDataSlice.Entry<T>
- Type Parameters:
T- decoded block payload type
- All Known Implementing Classes:
LinearDataSlice.Block,LinearDataSlice.Gap
- Enclosing class:
LinearDataSlice<T>
public static sealed interface LinearDataSlice.Entry<T>
permits LinearDataSlice.Block<T>, LinearDataSlice.Gap<T>
One entry on the time axis: either a recorded
LinearDataSlice.Block or a LinearDataSlice.Gap of missing
blocks. Every entry covers the inclusive index range [firstIndex, lastIndex] and the
half-open time range [startTimeNanos, endTimeNanos).-
Method Summary
Modifier and TypeMethodDescriptionlongExclusive end of the covered period (epoch nanos).longEpoch-anchored absolute index of the first block this entry covers.longEpoch-anchored absolute index of the last block this entry covers (inclusive).longInclusive start of the covered period (epoch nanos).
-
Method Details
-
firstIndex
long firstIndex()Epoch-anchored absolute index of the first block this entry covers. -
lastIndex
long lastIndex()Epoch-anchored absolute index of the last block this entry covers (inclusive). -
startTimeNanos
long startTimeNanos()Inclusive start of the covered period (epoch nanos). -
endTimeNanos
long endTimeNanos()Exclusive end of the covered period (epoch nanos).
-