@Internal public class PunctuatedWatermarkAssignerWrapper extends Object implements org.apache.flink.streaming.api.functions.AssignerWithPunctuatedWatermarks<org.apache.flink.table.data.RowData>
PunctuatedWatermarkAssigner.| Constructor and Description |
|---|
PunctuatedWatermarkAssignerWrapper(org.apache.flink.table.sources.wmstrategies.PunctuatedWatermarkAssigner assigner,
int timeFieldIdx,
org.apache.flink.table.types.DataType sourceType) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.flink.streaming.api.watermark.Watermark |
checkAndGetNextWatermark(org.apache.flink.table.data.RowData row,
long extractedTimestamp) |
long |
extractTimestamp(org.apache.flink.table.data.RowData element,
long recordTimestamp) |
public PunctuatedWatermarkAssignerWrapper(org.apache.flink.table.sources.wmstrategies.PunctuatedWatermarkAssigner assigner,
int timeFieldIdx,
org.apache.flink.table.types.DataType sourceType)
timeFieldIdx - the index of the rowtime attribute.assigner - the watermark assigner.sourceType - the type of source@Nullable public org.apache.flink.streaming.api.watermark.Watermark checkAndGetNextWatermark(org.apache.flink.table.data.RowData row, long extractedTimestamp)
checkAndGetNextWatermark in interface org.apache.flink.streaming.api.functions.AssignerWithPunctuatedWatermarks<org.apache.flink.table.data.RowData>public long extractTimestamp(org.apache.flink.table.data.RowData element,
long recordTimestamp)
extractTimestamp in interface org.apache.flink.api.common.eventtime.TimestampAssigner<org.apache.flink.table.data.RowData>Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.