Package org.apache.beam.sdk.values
Class TimestampedValue<V extends @Nullable Object>
java.lang.Object
org.apache.beam.sdk.values.TimestampedValue<V>
- Type Parameters:
V
- the type of the value
An immutable pair of a value and a timestamp.
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
).
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <V> TimestampedValue
<V> atMinimumTimestamp
(V value) Returns a newTimestampedValue
with theminimum timestamp
.boolean
getValue()
int
hashCode()
static <V> TimestampedValue
<V> Returns a newTimestampedValue
with the given value and timestamp.toString()
-
Constructor Details
-
TimestampedValue
-
-
Method Details
-
atMinimumTimestamp
Returns a newTimestampedValue
with theminimum timestamp
. -
of
Returns a newTimestampedValue
with the given value and timestamp. -
getValue
-
getTimestamp
-
equals
-
hashCode
public int hashCode() -
toString
-