Class WatermarkEstimators.Manual

    • Constructor Summary

      Constructors 
      Constructor Description
      Manual​(org.joda.time.Instant watermark)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.joda.time.Instant currentWatermark()
      Return estimated output watermark.
      org.joda.time.Instant getState()
      Get current state of the WatermarkEstimator instance, which can be used to recreate the WatermarkEstimator when processing the restriction.
      void setWatermark​(org.joda.time.Instant watermark)
      Sets a timestamp before or at the timestamps of all future elements produced by the associated DoFn.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Manual

        public Manual​(org.joda.time.Instant watermark)
    • Method Detail

      • setWatermark

        public void setWatermark​(org.joda.time.Instant watermark)
        Description copied from interface: ManualWatermarkEstimator
        Sets a timestamp before or at the timestamps of all future elements produced by the associated DoFn.

        This can be approximate. If records are output that violate this guarantee, they will be considered late, which will affect how they will be processed. See watermarks and late data for more information on late data and how to handle it.

        However, this value should be as late as possible. Downstream windows may not be able to close until this watermark passes their end.

        Specified by:
        setWatermark in interface ManualWatermarkEstimator<org.joda.time.Instant>
      • currentWatermark

        public org.joda.time.Instant currentWatermark()
        Description copied from interface: WatermarkEstimator
        Return estimated output watermark. This method must return monotonically increasing watermarks across instances that are constructed from prior state.
        Specified by:
        currentWatermark in interface WatermarkEstimator<org.joda.time.Instant>