Class PunctuatedWatermarkStrategyWrapper

java.lang.Object
org.apache.flink.table.runtime.operators.wmassigners.PunctuatedWatermarkStrategyWrapper
All Implemented Interfaces:
Serializable, org.apache.flink.api.common.eventtime.TimestampAssigner<org.apache.flink.table.data.RowData>, org.apache.flink.api.common.eventtime.TimestampAssignerSupplier<org.apache.flink.table.data.RowData>, org.apache.flink.api.common.eventtime.WatermarkGeneratorSupplier<org.apache.flink.table.data.RowData>, org.apache.flink.api.common.eventtime.WatermarkStrategy<org.apache.flink.table.data.RowData>, org.apache.flink.streaming.runtime.operators.util.WatermarkStrategyWithPunctuatedWatermarks<org.apache.flink.table.data.RowData>

@Internal public class PunctuatedWatermarkStrategyWrapper extends Object implements org.apache.flink.streaming.runtime.operators.util.WatermarkStrategyWithPunctuatedWatermarks<org.apache.flink.table.data.RowData>
Generates periodic watermarks based on a PunctuatedWatermarkAssigner.
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.apache.flink.api.common.eventtime.TimestampAssignerSupplier

    org.apache.flink.api.common.eventtime.TimestampAssignerSupplier.Context, org.apache.flink.api.common.eventtime.TimestampAssignerSupplier.SupplierFromSerializableTimestampAssigner<T extends Object>

    Nested classes/interfaces inherited from interface org.apache.flink.api.common.eventtime.WatermarkGeneratorSupplier

    org.apache.flink.api.common.eventtime.WatermarkGeneratorSupplier.Context
  • Field Summary

    Fields inherited from interface org.apache.flink.api.common.eventtime.TimestampAssigner

    NO_TIMESTAMP
  • Constructor Summary

    Constructors
    Constructor
    Description
    PunctuatedWatermarkStrategyWrapper(org.apache.flink.table.sources.wmstrategies.PunctuatedWatermarkAssigner assigner, int timeFieldIdx, org.apache.flink.table.types.DataType sourceType)
     
  • Method Summary

    Modifier and Type
    Method
    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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.flink.api.common.eventtime.WatermarkStrategy

    getAlignmentParameters, withIdleness, withTimestampAssigner, withTimestampAssigner, withWatermarkAlignment, withWatermarkAlignment

    Methods inherited from interface org.apache.flink.streaming.runtime.operators.util.WatermarkStrategyWithPunctuatedWatermarks

    createTimestampAssigner, createWatermarkGenerator
  • Constructor Details

    • PunctuatedWatermarkStrategyWrapper

      public PunctuatedWatermarkStrategyWrapper(org.apache.flink.table.sources.wmstrategies.PunctuatedWatermarkAssigner assigner, int timeFieldIdx, org.apache.flink.table.types.DataType sourceType)
      Parameters:
      timeFieldIdx - the index of the rowtime attribute.
      assigner - the watermark assigner.
      sourceType - the type of source
  • Method Details

    • checkAndGetNextWatermark

      @Nullable public org.apache.flink.streaming.api.watermark.Watermark checkAndGetNextWatermark(org.apache.flink.table.data.RowData row, long extractedTimestamp)
      Specified by:
      checkAndGetNextWatermark in interface org.apache.flink.streaming.runtime.operators.util.WatermarkStrategyWithPunctuatedWatermarks<org.apache.flink.table.data.RowData>
    • extractTimestamp

      public long extractTimestamp(org.apache.flink.table.data.RowData element, long recordTimestamp)
      Specified by:
      extractTimestamp in interface org.apache.flink.api.common.eventtime.TimestampAssigner<org.apache.flink.table.data.RowData>