Package org.apache.lucene.index
Class MultiTermsEnum.TermMergeQueue
- java.lang.Object
-
- org.apache.lucene.util.PriorityQueue<MultiTermsEnum.TermsEnumWithSlice>
-
- org.apache.lucene.index.MultiTermsEnum.TermMergeQueue
-
- All Implemented Interfaces:
java.lang.Iterable<MultiTermsEnum.TermsEnumWithSlice>
- Enclosing class:
- MultiTermsEnum
private static final class MultiTermsEnum.TermMergeQueue extends PriorityQueue<MultiTermsEnum.TermsEnumWithSlice>
-
-
Field Summary
Fields Modifier and Type Field Description (package private) int[]
stack
-
Constructor Summary
Constructors Constructor Description TermMergeQueue(int size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) int
fillTop(MultiTermsEnum.TermsEnumWithSlice[] tops)
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.private MultiTermsEnum.TermsEnumWithSlice
get(int i)
protected boolean
lessThan(MultiTermsEnum.TermsEnumWithSlice termsA, MultiTermsEnum.TermsEnumWithSlice termsB)
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 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
int fillTop(MultiTermsEnum.TermsEnumWithSlice[] tops)
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
private MultiTermsEnum.TermsEnumWithSlice get(int i)
-
-