Module org.elasticsearch.server
Class BucketPriorityQueue<B>
java.lang.Object
org.elasticsearch.common.util.ObjectArrayPriorityQueue<BucketAndOrd<B>>
org.elasticsearch.search.aggregations.bucket.terms.BucketPriorityQueue<B>
- All Implemented Interfaces:
Closeable,AutoCloseable,Iterable<BucketAndOrd<B>>,Releasable
-
Constructor Summary
ConstructorsConstructorDescriptionBucketPriorityQueue(int size, BigArrays bigArrays, Comparator<BucketAndOrd<B>> comparator) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanlessThan(BucketAndOrd<B> a, BucketAndOrd<B> b) Determines the ordering of objects in this priority queue.Methods inherited from class org.elasticsearch.common.util.ObjectArrayPriorityQueue
add, addAll, clear, close, doClose, insertWithOverflow, iterator, pop, remove, size, top, updateTop, updateTopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
BucketPriorityQueue
-
-
Method Details
-
lessThan
Description copied from class:ObjectArrayPriorityQueueDetermines the ordering of objects in this priority queue. Subclasses must define this one method.- Specified by:
lessThanin classObjectArrayPriorityQueue<BucketAndOrd<B>>- Returns:
trueiff parameterais less than parameterb.
-