TimestampedValue (Google Cloud Dataflow SDK 1.9.1 API)

Google Cloud Dataflow SDK for Java, version 1.9.1


Class TimestampedValue<V>

  • Type Parameters:
    V - the type of the value

    public class TimestampedValue<V>
    extends Object
    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).

    • Constructor Detail

      • TimestampedValue

        protected TimestampedValue(V value,
                                   Instant timestamp)
    • Method Detail

      • of

        public static <V> TimestampedValue<V> of(V value,
                                                 Instant timestamp)
        Returns a new TimestampedValue with the given value and timestamp.
      • getValue

        public V getValue()
      • getTimestamp

        public Instant getTimestamp()
      • hashCode

        public int hashCode()
        hashCode in class Object

Send feedback about...

Cloud Dataflow