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 java.lang.Object implements LeafCollector
-
-
Field Summary
Fields Modifier and Type Field Description (package private) LeafFieldComparator
comparator
(package private) int
reverseMul
(package private) Scorable
scorer
-
Constructor Summary
Constructors Constructor Description MultiComparatorLeafCollector(LeafFieldComparator[] comparators, int[] reverseMul)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setScorer(Scorable scorer)
Called before successive calls toLeafCollector.collect(int)
.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.lucene.search.LeafCollector
collect, competitiveIterator
-
-
-
-
Field Detail
-
comparator
final LeafFieldComparator comparator
-
reverseMul
final int reverseMul
-
scorer
Scorable scorer
-
-
Constructor Detail
-
MultiComparatorLeafCollector
MultiComparatorLeafCollector(LeafFieldComparator[] comparators, int[] reverseMul)
-
-
Method Detail
-
setScorer
public void setScorer(Scorable scorer) throws java.io.IOException
Description copied from interface:LeafCollector
Called 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:
setScorer
in interfaceLeafCollector
- Throws:
java.io.IOException
-
-