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.LeafCollectorsetScorer in class org.apache.lucene.search.SimpleCollectorjava.io.IOExceptionpublic void collect(int doc)
throws java.io.IOException
collect in interface org.apache.lucene.search.LeafCollectorcollect in class org.apache.lucene.search.SimpleCollectorjava.io.IOExceptionpublic void doSetNextReader(org.apache.lucene.index.LeafReaderContext atomicReaderContext)
throws java.io.IOException
doSetNextReader in class org.apache.lucene.search.SimpleCollectorjava.io.IOExceptionpublic boolean needsScores()