Class BoundedOutOfOrderWatermarkGenerator

java.lang.Object
org.apache.flink.api.common.functions.AbstractRichFunction
org.apache.flink.table.runtime.generated.WatermarkGenerator
org.apache.flink.table.runtime.operators.wmassigners.BoundedOutOfOrderWatermarkGenerator
All Implemented Interfaces:
Serializable, org.apache.flink.api.common.functions.Function, org.apache.flink.api.common.functions.RichFunction

public class BoundedOutOfOrderWatermarkGenerator extends WatermarkGenerator
A watermark generator for rowtime attributes which are out-of-order by a bounded time interval.

Emits watermarks which are the observed timestamp minus the specified delay.

See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    BoundedOutOfOrderWatermarkGenerator(int rowtimeIndex, long delay)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    currentWatermark(org.apache.flink.table.data.RowData row)
    Returns the watermark for the current row or null if no watermark should be generated.

    Methods inherited from class org.apache.flink.api.common.functions.AbstractRichFunction

    close, getIterationRuntimeContext, getRuntimeContext, open, setRuntimeContext

    Methods inherited from class java.lang.Object

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

    • BoundedOutOfOrderWatermarkGenerator

      public BoundedOutOfOrderWatermarkGenerator(int rowtimeIndex, long delay)
      Parameters:
      rowtimeIndex - the field index of rowtime attribute, the value of rowtime should never be null.
      delay - The delay by which watermarks are behind the observed timestamp.
  • Method Details

    • currentWatermark

      @Nullable public Long currentWatermark(org.apache.flink.table.data.RowData row)
      Description copied from class: WatermarkGenerator
      Returns the watermark for the current row or null if no watermark should be generated.
      Specified by:
      currentWatermark in class WatermarkGenerator
      Parameters:
      row - The current row.
      Returns:
      The watermark for this row or null if no watermark should be generated.