abstract static class TopScoreDocCollector.ScorerLeafCollector extends java.lang.Object implements LeafCollector
| Constructor and Description |
|---|
ScorerLeafCollector() |
| Modifier and Type | Method and Description |
|---|---|
void |
setScorer(Scorer scorer)
Called before successive calls to
LeafCollector.collect(int). |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcollectScorer scorer
public void setScorer(Scorer scorer) throws java.io.IOException
LeafCollectorLeafCollector.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 LeafCollectorjava.io.IOException