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(java.lang.Long lowerTimeBound,
java.lang.Long upperTimeBound) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(java.lang.Object other) |
boolean |
equals(java.lang.Object o) |
java.lang.Long |
getLowerTimeBound() |
java.lang.Long |
getUpperTimeBound() |
int |
hashCode() |
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.
|
java.lang.String |
toString() |
@ConstructorProperties(value={"lowerTimeBound","upperTimeBound"}) public TimeWindow(java.lang.Long lowerTimeBound, java.lang.Long upperTimeBound)
public boolean isNearTailOfStream()
public boolean isNearHeadOfStream()
public java.lang.Long getLowerTimeBound()
public java.lang.Long getUpperTimeBound()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
protected boolean canEqual(java.lang.Object other)
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object