public final class StartpointTimestamp extends Startpoint
Startpoint
that represents a timestamp offset in a stream partition.Constructor and Description |
---|
StartpointTimestamp(java.lang.Long timestampOffset)
Constructs a
Startpoint that represents a timestamp offset in a stream partition. |
Modifier and Type | Method and Description |
---|---|
<IN,OUT> OUT |
apply(IN input,
StartpointVisitor<IN,OUT> startpointVisitor)
Applies the
StartpointVisitor 's visit methods to the Startpoint
and returns the result of that operation. |
boolean |
equals(java.lang.Object o) |
java.lang.Long |
getTimestampOffset()
Getter for the timestamp offset.
|
int |
hashCode() |
java.lang.String |
toString() |
getCreationTimestamp
public StartpointTimestamp(java.lang.Long timestampOffset)
Startpoint
that represents a timestamp offset in a stream partition.timestampOffset
- in a stream partition in milliseconds.public java.lang.Long getTimestampOffset()
public <IN,OUT> OUT apply(IN input, StartpointVisitor<IN,OUT> startpointVisitor)
Startpoint
StartpointVisitor
's visit methods to the Startpoint
and returns the result of that operation.apply
in class Startpoint
input
- the metadata associated with the startpoint.startpointVisitor
- the visitor of the startpoint.public java.lang.String toString()
toString
in class Startpoint
public boolean equals(java.lang.Object o)
equals
in class Startpoint
public int hashCode()
hashCode
in class Startpoint