org.apache.lucene.facet
Class TopOrdAndIntQueue
java.lang.Object
org.apache.lucene.util.PriorityQueue<TopOrdAndIntQueue.OrdAndValue>
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TopOrdAndIntQueue
public TopOrdAndIntQueue(int topN)
- Sole constructor.
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.