- java.lang.Object
-
- org.apache.lucene.util.PriorityQueue<BKDWriter.MergeReader>
-
- org.apache.lucene.util.bkd.BKDWriter.BKDMergeQueue
-
- All Implemented Interfaces:
java.lang.Iterable<BKDWriter.MergeReader>
- Enclosing class:
- BKDWriter
private static class BKDWriter.BKDMergeQueue extends PriorityQueue<BKDWriter.MergeReader>
-
-
Field Summary
Fields Modifier and Type Field Description private ArrayUtil.ByteArrayComparator
comparator
-
Constructor Summary
Constructors Constructor Description BKDMergeQueue(int bytesPerDim, int maxSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
lessThan(BKDWriter.MergeReader a, BKDWriter.MergeReader b)
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
-
-
-
-
Field Detail
-
comparator
private final ArrayUtil.ByteArrayComparator comparator
-
-
Method Detail
-
lessThan
public boolean lessThan(BKDWriter.MergeReader a, BKDWriter.MergeReader b)
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<BKDWriter.MergeReader>
- Returns:
true
iff parametera
is less than parameterb
.
-
-