Class AbstractHeapPriorityQueueElement
- java.lang.Object
-
- org.apache.flink.runtime.state.heap.AbstractHeapPriorityQueueElement
-
- All Implemented Interfaces:
HeapPriorityQueueElement
- Direct Known Subclasses:
SourceCoordinator.WatermarkElement
public abstract class AbstractHeapPriorityQueueElement extends Object implements HeapPriorityQueueElement
Abstract base class forHeapPriorityQueueElement.
-
-
Field Summary
-
Fields inherited from interface org.apache.flink.runtime.state.heap.HeapPriorityQueueElement
NOT_CONTAINED
-
-
Constructor Summary
Constructors Constructor Description AbstractHeapPriorityQueueElement()
-
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.voidsetInternalIndex(int newIndex)Sets the current index of this object in theHeapPriorityQueueand should only be called by the owningHeapPriorityQueue.
-
-
-
Method Detail
-
getInternalIndex
public int getInternalIndex()
Description copied from interface:HeapPriorityQueueElementReturns the current index of this object in the internal array ofHeapPriorityQueue.- Specified by:
getInternalIndexin interfaceHeapPriorityQueueElement
-
setInternalIndex
public void setInternalIndex(int newIndex)
Description copied from interface:HeapPriorityQueueElementSets the current index of this object in theHeapPriorityQueueand should only be called by the owningHeapPriorityQueue.- Specified by:
setInternalIndexin interfaceHeapPriorityQueueElement- Parameters:
newIndex- the new index in the timer heap.
-
-