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 org.apache.lucene.util.PriorityQueue<ShardDoc>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected Comparator<ShardDoc>[]
    Stores a comparator corresponding to each field being sorted by
    protected List<String>
    The order of these fieldNames should correspond to the order of sort field values retrieved from the shard
    protected org.apache.lucene.search.SortField[]
    Stores the sort criteria being used.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ShardFieldSortedHitQueue(org.apache.lucene.search.SortField[] fields, int size, org.apache.lucene.search.IndexSearcher searcher)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
    lessThan(ShardDoc docA, ShardDoc docB)
     

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

    add, addAll, 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
  • Field Details

    • comparators

      protected Comparator<ShardDoc>[] comparators
      Stores a comparator corresponding to each field being sorted by
    • fields

      protected org.apache.lucene.search.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 Details

    • ShardFieldSortedHitQueue

      public ShardFieldSortedHitQueue(org.apache.lucene.search.SortField[] fields, int size, org.apache.lucene.search.IndexSearcher searcher)
  • Method Details

    • lessThan

      protected boolean lessThan(ShardDoc docA, ShardDoc docB)
      Specified by:
      lessThan in class org.apache.lucene.util.PriorityQueue<ShardDoc>