Example usage for Java org.apache.lucene.util PriorityQueue fields, constructors, methods, implement or subclass
The text is from its open source code.
int | size |
PriorityQueue | |
PriorityQueue(int maxSize) Create an empty priority queue of the configured size. |
T | add(T element) Adds an Object to a PriorityQueue in log(size) time. |
T | insertWithOverflow(T element) Adds an Object to a PriorityQueue in log(size) time. |
T | pop() Removes and returns the least element of the PriorityQueue in log(size) time. |
T | top() Returns the least element of the PriorityQueue in constant time. |
T | updateTop() Should be called when the Object at top changes values. |