org.apache.lucene.facet

## Class TopOrdAndFloatQueue

- java.lang.Object
- - org.apache.lucene.util.PriorityQueue<TopOrdAndFloatQueue.OrdAndValue>
  - - org.apache.lucene.facet.TopOrdAndFloatQueue

- All Implemented Interfaces:
    Iterable<TopOrdAndFloatQueue.OrdAndValue>

      public class TopOrdAndFloatQueue
      extends PriorityQueue<TopOrdAndFloatQueue.OrdAndValue>

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

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `TopOrdAndFloatQueue.OrdAndValue` Holds a single entry.

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `TopOrdAndFloatQueue(int topN)` Sole constructor.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected boolean` | `lessThan(TopOrdAndFloatQueue.OrdAndValue a, TopOrdAndFloatQueue.OrdAndValue b)`

    - ### 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`

- - ### Constructor Detail

    - #### TopOrdAndFloatQueue

          public TopOrdAndFloatQueue(int topN)

      Sole constructor.

  - ### Method Detail

    - #### lessThan

          protected boolean lessThan(TopOrdAndFloatQueue.OrdAndValue a,
                                     TopOrdAndFloatQueue.OrdAndValue b)

      Specified by:
        `lessThan` in class `PriorityQueue<TopOrdAndFloatQueue.OrdAndValue>`

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