public class MaxScoreCollector extends SimpleCollector
Collector for the maximum score value.| Constructor and Description |
|---|
MaxScoreCollector() |
| Modifier and Type | Method and Description |
|---|---|
void |
collect(int doc) |
float |
getMaxScore() |
ScoreMode |
scoreMode() |
void |
setScorer(Scorable scorer) |
doSetNextReader, getLeafCollectorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompetitiveIteratorpublic float getMaxScore()
public ScoreMode scoreMode()
public void setScorer(Scorable scorer) throws IOException
setScorer in interface LeafCollectorsetScorer in class SimpleCollectorIOExceptionpublic void collect(int doc)
throws IOException
collect in interface LeafCollectorcollect in class SimpleCollectorIOExceptionCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.