Class PriorityQueueIterator<T>
java.lang.Object
org.apache.cassandra.utils.AbstractIterator<T>
org.apache.cassandra.index.sai.iterators.PriorityQueueIterator<T>
- Type Parameters:
T- the type of the elements in the priority queue
- All Implemented Interfaces:
com.google.common.collect.PeekingIterator<T>,AutoCloseable,Iterator<T>,CloseableIterator<T>
An iterator over a priority queue.
-
Constructor Summary
ConstructorsConstructorDescriptionPriorityQueueIterator(PriorityQueue<T> queue) Build a PriorityQueueIterator. -
Method Summary
Methods inherited from class org.apache.cassandra.utils.AbstractIterator
close, endOfData, hasNext, next, peek, removeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
PriorityQueueIterator
Build a PriorityQueueIterator.- Parameters:
queue- a priority queue to be lazily consumed by the iterator
-
-
Method Details
-
computeNext
- Specified by:
computeNextin classAbstractIterator<T>
-