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) intfillTop(MultiTermsEnum.TermsEnumWithSlice[] tops)Add thePriorityQueue.top()slice as well as all slices that are positionned on the same term totopsand return how many of them there are.private MultiTermsEnum.TermsEnumWithSliceget(int i)protected booleanlessThan(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, 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:PriorityQueueDetermines the ordering of objects in this priority queue. Subclasses must define this one method.- Specified by:
lessThanin classPriorityQueue<MultiTermsEnum.TermsEnumWithSlice>- Returns:
trueiff parameter a is less than parameter b.
-
fillTop
int fillTop(MultiTermsEnum.TermsEnumWithSlice[] tops)
Add thePriorityQueue.top()slice as well as all slices that are positionned on the same term totopsand return how many of them there are.
-
get
private MultiTermsEnum.TermsEnumWithSlice get(int i)
-
-