Class TrackerPriorityQueue
java.lang.Object
com.illumon.iris.db.v2.updateby.hashing.TrackerPriorityQueue
A Min-Heap priority queue used to order
UpdateBySlotTracker.UpdateTracker
instances for classifying row keys to buckets.-
Constructor Summary
ConstructorsConstructorDescriptionTrackerPriorityQueue
(int initialCapacity) Create a TrackerPriorityQueue with the given initial capacity. -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(UpdateBySlotTracker.UpdateTracker tracker) Adds an element to the queue.pop()
Pop the top element from the queue.
-
Constructor Details
-
TrackerPriorityQueue
public TrackerPriorityQueue(int initialCapacity) Create a TrackerPriorityQueue with the given initial capacity.- Parameters:
initialCapacity
- how many ranges should we allocate room for
-
-
Method Details
-
add
Adds an element to the queue. -
pop
Pop the top element from the queue.- Returns:
- The item popped
-