Class AbstractHeapPriorityQueueElement
- java.lang.Object
-
- org.apache.flink.runtime.state.heap.AbstractHeapPriorityQueueElement
-
- All Implemented Interfaces:
HeapPriorityQueueElement
- Direct Known Subclasses:
ForStDBCachingPriorityQueueSet
,RocksDBCachingPriorityQueueSet
,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 int
getInternalIndex()
Returns the current index of this object in the internal array ofHeapPriorityQueue
.void
setInternalIndex(int newIndex)
Sets the current index of this object in theHeapPriorityQueue
and should only be called by the owningHeapPriorityQueue
.
-
-
-
Method Detail
-
getInternalIndex
public int getInternalIndex()
Description copied from interface:HeapPriorityQueueElement
Returns the current index of this object in the internal array ofHeapPriorityQueue
.- Specified by:
getInternalIndex
in interfaceHeapPriorityQueueElement
-
setInternalIndex
public void setInternalIndex(int newIndex)
Description copied from interface:HeapPriorityQueueElement
Sets the current index of this object in theHeapPriorityQueue
and should only be called by the owningHeapPriorityQueue
.- Specified by:
setInternalIndex
in interfaceHeapPriorityQueueElement
- Parameters:
newIndex
- the new index in the timer heap.
-
-