Class ShardFieldSortedHitQueue
java.lang.Object
org.apache.lucene.util.PriorityQueue<ShardDoc>
org.apache.solr.handler.component.ShardFieldSortedHitQueue
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Comparator<ShardDoc>[]Stores a comparator corresponding to each field being sorted byThe order of these fieldNames should correspond to the order of sort field values retrieved from the shardprotected org.apache.lucene.search.SortField[]Stores the sort criteria being used. -
Constructor Summary
ConstructorsConstructorDescriptionShardFieldSortedHitQueue(org.apache.lucene.search.SortField[] fields, int size, org.apache.lucene.search.IndexSearcher searcher) -
Method Summary
Methods inherited from class org.apache.lucene.util.PriorityQueue
add, addAll, clear, getHeapArray, insertWithOverflow, iterator, pop, remove, size, top, updateTop, updateTopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
comparators
Stores a comparator corresponding to each field being sorted by -
fields
protected org.apache.lucene.search.SortField[] fieldsStores the sort criteria being used. -
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
- Specified by:
lessThanin classorg.apache.lucene.util.PriorityQueue<ShardDoc>
-