Class NearestFuzzyQuery.ScoreTermQueue
java.lang.Object
org.apache.lucene.util.PriorityQueue<NearestFuzzyQuery.ScoreTerm>
org.apache.lucene.classification.utils.NearestFuzzyQuery.ScoreTermQueue
- All Implemented Interfaces:
Iterable<NearestFuzzyQuery.ScoreTerm>
- Enclosing class:
- NearestFuzzyQuery
private static class NearestFuzzyQuery.ScoreTermQueue
extends PriorityQueue<NearestFuzzyQuery.ScoreTerm>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
lessThan
(NearestFuzzyQuery.ScoreTerm termA, NearestFuzzyQuery.ScoreTerm termB) Determines 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, updateTop
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ScoreTermQueue
ScoreTermQueue(int size)
-
-
Method Details
-
lessThan
Description copied from class:PriorityQueue
Determines the ordering of objects in this priority queue. Subclasses must define this one method.- Specified by:
lessThan
in classPriorityQueue<NearestFuzzyQuery.ScoreTerm>
- Returns:
true
iff parametera
is less than parameterb
.
-