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 Type
    Method
    Description
    long
    Exclusive end of the covered period (epoch nanos).
    long
    Epoch-anchored absolute index of the first block this entry covers.
    long
    Epoch-anchored absolute index of the last block this entry covers (inclusive).
    long
    Inclusive 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).