public class TimeWindow
extends java.lang.Object
EventStreamWriter.noteTime(long)
API for by any writer using that
API at the current location in the stream. If the reader is near the beginning (or the truncation
point) of the stream, there may be no timestamps to compare against and no lower bound can be established.
Similarly the upper time bound is a timestamp which is greater than or equal to any that were provided by
any writer via the EventStreamWriter.noteTime(long)
API prior to the current location in
the stream. If a reader is near the end (tail) of the stream there may be no writer timestamps
to compare against and no upper bound can be established.
upperTimeBound will always be greater than or equal to lowerTimeBound.Constructor and Description |
---|
TimeWindow() |
Modifier and Type | Method and Description |
---|---|
boolean |
isNearHeadOfStream()
Returns true if the reader is currently near the head of the stream and therefore no lower time bound can be obtained.
|
boolean |
isNearTailOfStream()
Returns true if the reader is currently near the tail of the stream and therefore no upper time bound can be obtained.
|
public boolean isNearTailOfStream()
public boolean isNearHeadOfStream()