abstract static class TopScoreDocCollector.ScorerLeafCollector extends java.lang.Object implements LeafCollector
Constructor and Description |
---|
ScorerLeafCollector() |
Modifier and Type | Method and Description |
---|---|
void |
setScorer(Scorable scorer)
Called before successive calls to
LeafCollector.collect(int) . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
collect
Scorable scorer
public void setScorer(Scorable scorer) throws java.io.IOException
LeafCollector
LeafCollector.collect(int)
. Implementations
that need the score of the current document (passed-in to
LeafCollector.collect(int)
), should save the passed-in Scorer and call
scorer.score() when needed.setScorer
in interface LeafCollector
java.io.IOException