org.elasticsearch.search.facet.terms.support
Class EntryPriorityQueue

java.lang.Object
  extended by org.apache.lucene.util.PriorityQueue<TermsFacet.Entry>
      extended by org.elasticsearch.search.facet.terms.support.EntryPriorityQueue

public class EntryPriorityQueue
extends org.apache.lucene.util.PriorityQueue<TermsFacet.Entry>


Field Summary
static int LIMIT
           
 
Constructor Summary
EntryPriorityQueue(int size, Comparator<TermsFacet.Entry> comparator)
           
 
Method Summary
protected  boolean lessThan(TermsFacet.Entry a, TermsFacet.Entry b)
           
 
Methods inherited from class org.apache.lucene.util.PriorityQueue
add, clear, getHeapArray, getSentinelObject, initialize, insertWithOverflow, pop, size, top, updateTop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LIMIT

public static final int LIMIT
See Also:
Constant Field Values
Constructor Detail

EntryPriorityQueue

public EntryPriorityQueue(int size,
                          Comparator<TermsFacet.Entry> comparator)
Method Detail

lessThan

protected boolean lessThan(TermsFacet.Entry a,
                           TermsFacet.Entry b)
Specified by:
lessThan in class org.apache.lucene.util.PriorityQueue<TermsFacet.Entry>


Copyright © 2009-2012. All Rights Reserved.