Class LongWatermarkCombiner.LongWatermarkElement
- java.lang.Object
-
- org.apache.flink.streaming.runtime.watermark.LongWatermarkCombiner.LongWatermarkElement
-
- All Implemented Interfaces:
HeapPriorityQueue.HeapPriorityQueueElement
- Enclosing class:
- LongWatermarkCombiner
protected static class LongWatermarkCombiner.LongWatermarkElement extends Object implements HeapPriorityQueue.HeapPriorityQueueElement
This class implementsHeapPriorityQueue.HeapPriorityQueueElementto help find the maximum/minimumLongWatermark.
-
-
Field Summary
-
Fields inherited from interface org.apache.flink.streaming.runtime.watermarkstatus.HeapPriorityQueue.HeapPriorityQueueElement
NOT_CONTAINED
-
-
Constructor Summary
Constructors Constructor Description LongWatermarkElement(long watermarkValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetInternalIndex()Returns the current index of this object in the internal array ofHeapPriorityQueue.longgetWatermarkValue()voidsetInternalIndex(int newIndex)Sets the current index of this object in theHeapPriorityQueueand should only be called by the owningHeapPriorityQueue.voidsetWatermarkValue(long watermarkValue)
-
-
-
Method Detail
-
getInternalIndex
public int getInternalIndex()
Description copied from interface:HeapPriorityQueue.HeapPriorityQueueElementReturns the current index of this object in the internal array ofHeapPriorityQueue.- Specified by:
getInternalIndexin interfaceHeapPriorityQueue.HeapPriorityQueueElement
-
setInternalIndex
public void setInternalIndex(int newIndex)
Description copied from interface:HeapPriorityQueue.HeapPriorityQueueElementSets the current index of this object in theHeapPriorityQueueand should only be called by the owningHeapPriorityQueue.- Specified by:
setInternalIndexin interfaceHeapPriorityQueue.HeapPriorityQueueElement- Parameters:
newIndex- the new index in the timer heap.
-
setWatermarkValue
public void setWatermarkValue(long watermarkValue)
-
getWatermarkValue
public long getWatermarkValue()
-
-