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
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 -
Method Summary
Modifier and TypeMethodDescriptioncurrentWatermark(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
-
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
Description copied from class:WatermarkGeneratorReturns the watermark for the current row or null if no watermark should be generated.- Specified by:
currentWatermarkin classWatermarkGenerator- Parameters:
row- The current row.- Returns:
- The watermark for this row or null if no watermark should be generated.
-