Class BucketPriorityQueue<B extends Terms.Bucket>
- java.lang.Object
-
- org.apache.lucene.util.PriorityQueue<B>
-
- org.elasticsearch.search.aggregations.bucket.terms.BucketPriorityQueue<B>
-
- All Implemented Interfaces:
Iterable<B>
public class BucketPriorityQueue<B extends Terms.Bucket> extends PriorityQueue<B>
-
-
Constructor Summary
Constructors Constructor Description BucketPriorityQueue(int size, Comparator<? super B> comparator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanlessThan(B a, B b)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
-
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 Detail
-
BucketPriorityQueue
public BucketPriorityQueue(int size, Comparator<? super B> comparator)
-
-
Method Detail
-
lessThan
protected boolean lessThan(B a, B b)
Description copied from class:PriorityQueueDetermines the ordering of objects in this priority queue. Subclasses must define this one method.- Specified by:
lessThanin classPriorityQueue<B extends Terms.Bucket>- Returns:
trueiff parameter a is less than parameter b.
-
-