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 for
HeapPriorityQueueElement.-
Field Summary
Fields inherited from interface org.apache.flink.runtime.state.heap.HeapPriorityQueueElement
NOT_CONTAINED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns 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.
-
Constructor Details
-
AbstractHeapPriorityQueueElement
public AbstractHeapPriorityQueueElement()
-
-
Method Details
-
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.
-