java.lang.Object
org.apache.lucene.util.PriorityQueue<TopOrdAndIntQueue.OrdAndValue>
org.apache.lucene.facet.TopOrdAndIntQueue
- All Implemented Interfaces:
Iterable<TopOrdAndIntQueue.OrdAndValue>
Keeps highest results, first by largest int value, then tie break by smallest ord.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHolds a single entry. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanDetermines the ordering of objects in this priority queue.Methods inherited from class org.apache.lucene.util.PriorityQueue
add, addAll, clear, getHeapArray, insertWithOverflow, iterator, pop, remove, size, top, updateTop, updateTopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
TopOrdAndIntQueue
public TopOrdAndIntQueue(int topN) Sole constructor.
-
-
Method Details
-
lessThan
Description copied from class:PriorityQueueDetermines the ordering of objects in this priority queue. Subclasses must define this one method.- Specified by:
lessThanin classPriorityQueue<TopOrdAndIntQueue.OrdAndValue>- Returns:
trueiff parameterais less than parameterb.
-