Module org.apache.lucene.grouping
Class BlockGroupingCollector.GroupQueue
java.lang.Object
org.apache.lucene.util.PriorityQueue<BlockGroupingCollector.OneGroup>
org.apache.lucene.search.grouping.BlockGroupingCollector.GroupQueue
- All Implemented Interfaces:
Iterable<BlockGroupingCollector.OneGroup>
- Enclosing class:
BlockGroupingCollector
private final class BlockGroupingCollector.GroupQueue
extends PriorityQueue<BlockGroupingCollector.OneGroup>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
lessThan
(BlockGroupingCollector.OneGroup group1, BlockGroupingCollector.OneGroup group2) 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
-
Constructor Details
-
GroupQueue
public GroupQueue(int size)
-
-
Method Details
-
lessThan
protected boolean lessThan(BlockGroupingCollector.OneGroup group1, BlockGroupingCollector.OneGroup group2) 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<BlockGroupingCollector.OneGroup>
- Returns:
true
iff parametera
is less than parameterb
.
-