Class LongWatermarkCombiner
java.lang.Object
org.apache.flink.streaming.runtime.watermark.LongWatermarkCombiner
- All Implemented Interfaces:
WatermarkCombiner
A
WatermarkCombiner for unaligned LongWatermarks.
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classThis class implementsHeapPriorityQueue.HeapPriorityQueueElementto help find the maximum/minimumLongWatermark. -
Constructor Summary
ConstructorsConstructorDescriptionLongWatermarkCombiner(org.apache.flink.api.common.watermark.WatermarkCombinationPolicy combinationPolicy, int numberOfInputChannels) -
Method Summary
Modifier and TypeMethodDescriptionvoidcombineWatermark(org.apache.flink.api.common.watermark.Watermark watermark, int channelIndex, Consumer<org.apache.flink.api.common.watermark.Watermark> watermarkEmitter)
-
Constructor Details
-
LongWatermarkCombiner
public LongWatermarkCombiner(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) - Specified by:
combineWatermarkin interfaceWatermarkCombiner
-