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