Module org.apache.lucene.core
Package org.apache.lucene.search
Class FieldValueHitQueue.OneComparatorFieldValueHitQueue<T extends FieldValueHitQueue.Entry>
java.lang.Object
org.apache.lucene.util.PriorityQueue<T>
org.apache.lucene.search.FieldValueHitQueue<T>
org.apache.lucene.search.FieldValueHitQueue.OneComparatorFieldValueHitQueue<T>
- All Implemented Interfaces:
Iterable<T>
- Enclosing class:
FieldValueHitQueue<T extends FieldValueHitQueue.Entry>
private static final class FieldValueHitQueue.OneComparatorFieldValueHitQueue<T extends FieldValueHitQueue.Entry>
extends FieldValueHitQueue<T>
An implementation of
FieldValueHitQueue which is optimized in case there is just one
comparator.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.search.FieldValueHitQueue
FieldValueHitQueue.Entry -
Field Summary
FieldsFields inherited from class org.apache.lucene.search.FieldValueHitQueue
comparators, fields, reverseMul -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanlessThan(FieldValueHitQueue.Entry hitA, FieldValueHitQueue.Entry hitB) Returns whetherhitAis less relevant thanhitB.Methods inherited from class org.apache.lucene.search.FieldValueHitQueue
create, fillFields, getComparators, getComparators, getFields, getReverseMulMethods 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
-
oneReverseMul
private final int oneReverseMul -
oneComparator
-
-
Constructor Details
-
OneComparatorFieldValueHitQueue
-
-
Method Details
-
lessThan
Returns whetherhitAis less relevant thanhitB.- Specified by:
lessThanin classFieldValueHitQueue<T extends FieldValueHitQueue.Entry>- Parameters:
hitA- EntryhitB- Entry- Returns:
trueif documenthitAshould be sorted after documenthitB.
-