public class ShardFieldSortedHitQueue extends PriorityQueue<ShardDoc>
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 and Description |
---|
ShardFieldSortedHitQueue(SortField[] fields,
int size,
IndexSearcher searcher) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
lessThan(ShardDoc docA,
ShardDoc docB) |
add, clear, getHeapArray, insertWithOverflow, iterator, pop, remove, size, top, updateTop, updateTop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
protected Comparator<ShardDoc>[] comparators
protected SortField[] fields
public ShardFieldSortedHitQueue(SortField[] fields, int size, IndexSearcher searcher)
protected boolean lessThan(ShardDoc docA, ShardDoc docB)
lessThan
in class PriorityQueue<ShardDoc>
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.