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 implements
HeapPriorityQueue.HeapPriorityQueueElement to help find the maximum/minimum
LongWatermark.-
Field Summary
Fields inherited from interface org.apache.flink.streaming.runtime.watermarkstatus.HeapPriorityQueue.HeapPriorityQueueElement
NOT_CONTAINED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the current index of this object in the internal array ofHeapPriorityQueue.longvoidsetInternalIndex(int newIndex) Sets the current index of this object in theHeapPriorityQueueand should only be called by the owningHeapPriorityQueue.voidsetWatermarkValue(long watermarkValue)
-
Constructor Details
-
LongWatermarkElement
public LongWatermarkElement(long watermarkValue)
-
-
Method Details
-
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()
-