org.apache.solr.handler.component

## Class ShardFieldSortedHitQueue

- java.lang.Object
- - org.apache.lucene.util.PriorityQueue<ShardDoc>
  - - org.apache.solr.handler.component.ShardFieldSortedHitQueue

- All Implemented Interfaces:
    Iterable<ShardDoc>

      public class ShardFieldSortedHitQueue
      extends PriorityQueue<ShardDoc>

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected Comparator<ShardDoc>[]` | `comparators` Stores a comparator corresponding to each field being sorted by
    `protected List<String>` | `fieldNames` The order of these fieldNames should correspond to the order of sort field values retrieved from the shard
    `protected SortField[]` | `fields` Stores the sort criteria being used.

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `ShardFieldSortedHitQueue(SortField[] fields, int size, IndexSearcher searcher)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected boolean` | `lessThan(ShardDoc docA, ShardDoc docB)`

    - ### Methods inherited from class org.apache.lucene.util.PriorityQueue

      `add, clear, getHeapArray, getSentinelObject, 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`

- - ### Field Detail

    - #### comparators

          protected Comparator<ShardDoc>[] comparators

      Stores a comparator corresponding to each field being sorted by

    - #### fields

          protected SortField[] fields

      Stores the sort criteria being used.

    - #### fieldNames

          protected List<String> fieldNames

      The order of these fieldNames should correspond to the order of sort field values retrieved from the shard

  - ### Constructor Detail

    - #### ShardFieldSortedHitQueue

          public ShardFieldSortedHitQueue(SortField[] fields,
                                          int size,
                                          IndexSearcher searcher)

  - ### Method Detail

    - #### lessThan

          protected boolean lessThan(ShardDoc docA,
                                     ShardDoc docB)

      Specified by:
        `lessThan` in class `PriorityQueue<ShardDoc>`

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