public static final class Lucene.EarlyTerminatingCollector
extends org.apache.lucene.search.SimpleCollector
Lucene.EarlyTerminationException
when count of matched documents has reached maxCountHits
Modifier and Type | Method and Description |
---|---|
void |
collect(int doc) |
int |
count() |
void |
doSetNextReader(org.apache.lucene.index.LeafReaderContext atomicReaderContext) |
boolean |
exists() |
boolean |
needsScores() |
void |
setScorer(org.apache.lucene.search.Scorer scorer) |
public int count()
public boolean exists()
public void setScorer(org.apache.lucene.search.Scorer scorer) throws java.io.IOException
setScorer
in interface org.apache.lucene.search.LeafCollector
setScorer
in class org.apache.lucene.search.SimpleCollector
java.io.IOException
public void collect(int doc) throws java.io.IOException
collect
in interface org.apache.lucene.search.LeafCollector
collect
in class org.apache.lucene.search.SimpleCollector
java.io.IOException
public void doSetNextReader(org.apache.lucene.index.LeafReaderContext atomicReaderContext) throws java.io.IOException
doSetNextReader
in class org.apache.lucene.search.SimpleCollector
java.io.IOException
public boolean needsScores()