private abstract static class TopFieldCollector.MultiComparatorLeafCollector extends java.lang.Object implements LeafCollector
| Modifier and Type | Field and Description |
|---|---|
(package private) LeafFieldComparator[] |
comparators |
(package private) LeafFieldComparator |
firstComparator |
(package private) int |
firstReverseMul |
(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 |
|---|---|
protected int |
compareBottom(int doc) |
protected int |
compareTop(int doc) |
protected void |
copy(int slot,
int doc) |
protected void |
setBottom(int slot) |
void |
setScorer(Scorer scorer)
Called before successive calls to
LeafCollector.collect(int). |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcollectfinal LeafFieldComparator[] comparators
final int[] reverseMul
final LeafFieldComparator firstComparator
final int firstReverseMul
final boolean mayNeedScoresTwice
Scorer scorer
MultiComparatorLeafCollector(LeafFieldComparator[] comparators, int[] reverseMul, boolean mayNeedScoresTwice)
protected final int compareBottom(int doc)
throws java.io.IOException
java.io.IOExceptionprotected final void copy(int slot,
int doc)
throws java.io.IOException
java.io.IOExceptionprotected final void setBottom(int slot)
protected final int compareTop(int doc)
throws java.io.IOException
java.io.IOExceptionpublic 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