private abstract static class TopFieldCollector.MultiComparatorLeafCollector extends java.lang.Object implements LeafCollector
| Modifier and Type | Field and Description |
|---|---|
(package private) LeafFieldComparator |
comparator |
(package private) boolean |
mayNeedScoresTwice |
(package private) int |
reverseMul |
(package private) Scorer |
scorer |
| Constructor and Description |
|---|
MultiComparatorLeafCollector(LeafFieldComparator[] comparators,
int[] reverseMul,
boolean mayNeedScoresTwice) |
| 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, waitcollectfinal LeafFieldComparator comparator
final int reverseMul
final boolean mayNeedScoresTwice
Scorer scorer
MultiComparatorLeafCollector(LeafFieldComparator[] comparators, int[] reverseMul, boolean mayNeedScoresTwice)
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