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 booleanlessThan(PhrasePositions pp1, PhrasePositions pp2)Determines the ordering of objects in this priority queue.-
Methods inherited from class org.apache.lucene.util.PriorityQueue
add, 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:PriorityQueueDetermines the ordering of objects in this priority queue. Subclasses must define this one method.- Specified by:
lessThanin classPriorityQueue<PhrasePositions>- Returns:
trueiff parameter a is less than parameter b.
-
-