org.apache.lucene.facet
Class TopOrdAndIntQueue

java.lang.Object
  extended by org.apache.lucene.util.PriorityQueue<TopOrdAndIntQueue.OrdAndValue>
      extended by org.apache.lucene.facet.TopOrdAndIntQueue

public class TopOrdAndIntQueue
extends PriorityQueue<TopOrdAndIntQueue.OrdAndValue>

Keeps highest results, first by largest int value, then tie break by smallest ord.


Nested Class Summary
static class TopOrdAndIntQueue.OrdAndValue
          Holds a single entry.
 
Constructor Summary
TopOrdAndIntQueue(int topN)
          Sole constructor.
 
Method Summary
protected  boolean lessThan(TopOrdAndIntQueue.OrdAndValue a, TopOrdAndIntQueue.OrdAndValue b)
           
 
Methods inherited from class org.apache.lucene.util.PriorityQueue
add, clear, getHeapArray, getSentinelObject, insertWithOverflow, pop, size, top, updateTop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TopOrdAndIntQueue

public TopOrdAndIntQueue(int topN)
Sole constructor.

Method Detail

lessThan

protected boolean lessThan(TopOrdAndIntQueue.OrdAndValue a,
                           TopOrdAndIntQueue.OrdAndValue b)
Specified by:
lessThan in class PriorityQueue<TopOrdAndIntQueue.OrdAndValue>


Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.