Package org.apache.lucene.search
Class TopFieldCollector.MultiComparatorLeafCollector
java.lang.Object
org.apache.lucene.search.TopFieldCollector.MultiComparatorLeafCollector
- All Implemented Interfaces:
LeafCollector
- Enclosing class:
TopFieldCollector
private abstract static class TopFieldCollector.MultiComparatorLeafCollector
extends Object
implements LeafCollector
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final LeafFieldComparator(package private) final int(package private) Scorable -
Constructor Summary
ConstructorsConstructorDescriptionMultiComparatorLeafCollector(LeafFieldComparator[] comparators, int[] reverseMul) -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled before successive calls toLeafCollector.collect(int).Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.lucene.search.LeafCollector
collect, competitiveIterator
-
Field Details
-
comparator
-
reverseMul
final int reverseMul -
scorer
Scorable scorer
-
-
Constructor Details
-
MultiComparatorLeafCollector
MultiComparatorLeafCollector(LeafFieldComparator[] comparators, int[] reverseMul)
-
-
Method Details
-
setScorer
Description copied from interface:LeafCollectorCalled before successive calls toLeafCollector.collect(int). Implementations that need the score of the current document (passed-in toLeafCollector.collect(int)), should save the passed-in Scorer and call scorer.score() when needed.- Specified by:
setScorerin interfaceLeafCollector- Throws:
IOException
-