java.lang.Object
org.apache.lucene.util.PriorityQueue<MultiTermsEnum.TermsEnumWithSlice>
org.apache.lucene.index.MultiTermsEnum.TermMergeQueue
- All Implemented Interfaces:
Iterable<MultiTermsEnum.TermsEnumWithSlice>
- Enclosing class:
- MultiTermsEnum
private static final class MultiTermsEnum.TermMergeQueue
extends PriorityQueue<MultiTermsEnum.TermsEnumWithSlice>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) int
Add thePriorityQueue.top()
slice as well as all slices that are positionned on the same term totops
and return how many of them there are.get
(int i) protected boolean
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
-
Field Details
-
stack
final int[] stack
-
-
Constructor Details
-
TermMergeQueue
TermMergeQueue(int size)
-
-
Method Details
-
lessThan
protected boolean lessThan(MultiTermsEnum.TermsEnumWithSlice termsA, MultiTermsEnum.TermsEnumWithSlice termsB) 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<MultiTermsEnum.TermsEnumWithSlice>
- Returns:
true
iff parametera
is less than parameterb
.
-
fillTop
Add thePriorityQueue.top()
slice as well as all slices that are positionned on the same term totops
and return how many of them there are. -
get
-