V - the type of the valuepublic class TimestampedValue<V> extends Object
The timestamp of a value determines many properties, such as its assignment to
windows and whether the value is late (with respect to the watermark of a PCollection).
| Modifier and Type | Class and Description |
|---|---|
static class |
TimestampedValue.TimestampedValueCoder<T>
A
Coder for TimestampedValue. |
| Modifier | Constructor and Description |
|---|---|
protected |
TimestampedValue(V value,
Instant timestamp) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
Instant |
getTimestamp() |
V |
getValue() |
int |
hashCode() |
static <V> TimestampedValue<V> |
of(V value,
Instant timestamp)
Returns a new
TimestampedValue with the given value and timestamp. |
String |
toString() |
public static <V> TimestampedValue<V> of(V value, Instant timestamp)
TimestampedValue with the given value and timestamp.public V getValue()
public Instant getTimestamp()