java.lang.Object
org.apache.lucene.util.PriorityQueue<TopDocs.ShardRef>
org.apache.lucene.search.TopDocs.ScoreMergeSortQueue
- All Implemented Interfaces:
Iterable<TopDocs.ShardRef>
- Enclosing class:
TopDocs
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final ScoreDoc[][]
(package private) final Comparator
<ScoreDoc> -
Constructor Summary
ConstructorsConstructorDescriptionScoreMergeSortQueue
(TopDocs[] shardHits, Comparator<ScoreDoc> tieBreakerComparator) -
Method Summary
Modifier and TypeMethodDescriptionboolean
lessThan
(TopDocs.ShardRef first, TopDocs.ShardRef second) Determines the ordering of objects in this priority queue.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
-
shardHits
-
tieBreakerComparator
-
-
Constructor Details
-
ScoreMergeSortQueue
-
-
Method Details
-
lessThan
Description copied from class:PriorityQueue
Determines the ordering of objects in this priority queue. Subclasses must define this one method.- Specified by:
lessThan
in classPriorityQueue<TopDocs.ShardRef>
- Returns:
true
iff parametera
is less than parameterb
.
-