Class BucketSignificancePriorityQueue<B extends SignificantTerms.Bucket>
- java.lang.Object
-
- org.apache.lucene.util.PriorityQueue<B>
-
- org.elasticsearch.search.aggregations.bucket.significant.BucketSignificancePriorityQueue<B>
-
- All Implemented Interfaces:
Iterable<B>
public class BucketSignificancePriorityQueue<B extends SignificantTerms.Bucket> extends PriorityQueue<B>
-
-
Constructor Summary
Constructors Constructor Description BucketSignificancePriorityQueue(int size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanlessThan(SignificantTerms.Bucket o1, SignificantTerms.Bucket o2)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
-
-
-
-
Method Detail
-
lessThan
protected boolean lessThan(SignificantTerms.Bucket o1, SignificantTerms.Bucket o2)
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 SignificantTerms.Bucket>- Returns:
trueiff parameter a is less than parameter b.
-
-