Package org.apache.lucene.search
Class PhraseQueue
- java.lang.Object
-
- org.apache.lucene.util.PriorityQueue<PhrasePositions>
-
- org.apache.lucene.search.PhraseQueue
-
- All Implemented Interfaces:
java.lang.Iterable<PhrasePositions>
final class PhraseQueue extends PriorityQueue<PhrasePositions>
-
-
Constructor Summary
Constructors Constructor Description PhraseQueue(int size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
lessThan(PhrasePositions pp1, PhrasePositions pp2)
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
-
-
-
-
Method Detail
-
lessThan
protected final boolean lessThan(PhrasePositions pp1, PhrasePositions pp2)
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<PhrasePositions>
- Returns:
true
iff parametera
is less than parameterb
.
-
-