Class WatermarkGenerator
- java.lang.Object
-
- org.apache.flink.api.common.functions.AbstractRichFunction
-
- org.apache.flink.table.runtime.generated.WatermarkGenerator
-
- All Implemented Interfaces:
Serializable
,org.apache.flink.api.common.functions.Function
,org.apache.flink.api.common.functions.RichFunction
- Direct Known Subclasses:
BoundedOutOfOrderWatermarkGenerator
public abstract class WatermarkGenerator extends org.apache.flink.api.common.functions.AbstractRichFunction
TheWatermarkGenerator
is used to generate watermark based the input elements.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WatermarkGenerator()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract Long
currentWatermark(org.apache.flink.table.data.RowData row)
Returns the watermark for the current row or null if no watermark should be generated.
-
-
-
Method Detail
-
currentWatermark
@Nullable public abstract Long currentWatermark(org.apache.flink.table.data.RowData row) throws Exception
Returns the watermark for the current row or null if no watermark should be generated.- Parameters:
row
- The current row.- Returns:
- The watermark for this row or null if no watermark should be generated.
- Throws:
Exception
-
-