Package org.apache.lucene.search
Class TopScoreDocCollector.ScorerLeafCollector
java.lang.Object
org.apache.lucene.search.TopScoreDocCollector.ScorerLeafCollector
- All Implemented Interfaces:
LeafCollector
- Enclosing class:
- TopScoreDocCollector
public abstract static class TopScoreDocCollector.ScorerLeafCollector
extends Object
implements LeafCollector
Scorable leaf collector
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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 Details
-
scorer
-
-
Constructor Details
-
ScorerLeafCollector
public ScorerLeafCollector()
-
-
Method Details
-
setScorer
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:
IOException
-