Class BoolWatermarkCombiner

java.lang.Object
org.apache.flink.streaming.runtime.watermark.BoolWatermarkCombiner
All Implemented Interfaces:
WatermarkCombiner

public class BoolWatermarkCombiner extends Object implements WatermarkCombiner
A WatermarkCombiner for unaligned BoolWatermarks.

The combination process will perform the following steps: (1) determine if it satisfies the condition of WatermarkCombinationPolicy.isCombineWaitForAllChannels(), (2) calculate the combined watermark value, (3) send the combined watermark to downstream only when the value differs from the previous sent one or if it's the first time sending.

  • Constructor Summary

    Constructors
    Constructor
    Description
    BoolWatermarkCombiner(org.apache.flink.api.common.watermark.WatermarkCombinationPolicy combinationPolicy, int numberOfInputChannels)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    combineWatermark(org.apache.flink.api.common.watermark.Watermark watermark, int channelIndex, Consumer<org.apache.flink.api.common.watermark.Watermark> watermarkEmitter)
     

    Methods inherited from class java.lang.Object

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

    • BoolWatermarkCombiner

      public BoolWatermarkCombiner(org.apache.flink.api.common.watermark.WatermarkCombinationPolicy combinationPolicy, int numberOfInputChannels)
  • Method Details

    • combineWatermark

      public void combineWatermark(org.apache.flink.api.common.watermark.Watermark watermark, int channelIndex, Consumer<org.apache.flink.api.common.watermark.Watermark> watermarkEmitter) throws Exception
      Specified by:
      combineWatermark in interface WatermarkCombiner
      Throws:
      Exception