Example usage for Java org.apache.hadoop.util PriorityQueue fields, constructors, methods, implement or subclass
The text is from its open source code.
int | size |
boolean | insert(T element) Adds element to the PriorityQueue in log(size) time if either the PriorityQueue is not full, or not lessThan(element, top()). |
T | pop() Removes and returns the least element of the PriorityQueue in log(size) time. |
void | put(T element) Adds an Object to a PriorityQueue in log(size) time. |
T | top() Returns the least element of the PriorityQueue in constant time. |