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

이 페이지가 도움이 되었나요? 평가를 부탁드립니다.

다음에 대한 의견 보내기...

도움이 필요하시나요? 지원 페이지를 방문하세요.