Module org.elasticsearch.server
Class BucketSignificancePriorityQueue<B extends SignificantTerms.Bucket>
java.lang.Object
org.elasticsearch.common.util.ObjectArrayPriorityQueue<BucketAndOrd<B>>
org.elasticsearch.search.aggregations.bucket.terms.BucketSignificancePriorityQueue<B>
- All Implemented Interfaces:
Closeable,AutoCloseable,Iterable<BucketAndOrd<B>>,Releasable
public class BucketSignificancePriorityQueue<B extends SignificantTerms.Bucket>
extends ObjectArrayPriorityQueue<BucketAndOrd<B>>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanlessThan(BucketAndOrd<B> o1, BucketAndOrd<B> o2) 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
-
BucketSignificancePriorityQueue
-
-
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 extends SignificantTerms.Bucket>>- Returns:
trueiff parameterais less than parameterb.
-