|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.lucene.search.Collector
org.apache.solr.search.EarlyTerminatingCollector
public class EarlyTerminatingCollector
A wrapper Collector that throws EarlyTerminatingCollectorException)
once a specified maximum number of documents are collected.
| Constructor Summary | |
|---|---|
EarlyTerminatingCollector(Collector delegate,
int maxDocsToCollect)
Wraps a Collector, throwing EarlyTerminatingCollectorException
once the specified maximum is reached. |
|
| Method Summary | |
|---|---|
boolean |
acceptsDocsOutOfOrder()
This collector requires that docs be collected in order, otherwise the computed number of scanned docs in the resulting EarlyTerminatingCollectorException will be meaningless. |
void |
collect(int doc)
|
void |
setNextReader(AtomicReaderContext context)
|
void |
setScorer(Scorer scorer)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EarlyTerminatingCollector(Collector delegate,
int maxDocsToCollect)
Wraps a Collector, throwing EarlyTerminatingCollectorException
once the specified maximum is reached.
delegate - - the Collector to wrap.maxDocsToCollect - - the maximum number of documents to Collect| Method Detail |
|---|
public boolean acceptsDocsOutOfOrder()
EarlyTerminatingCollectorException will be meaningless.
acceptsDocsOutOfOrder in class Collector
public void collect(int doc)
throws IOException
collect in class CollectorIOException
public void setNextReader(AtomicReaderContext context)
throws IOException
setNextReader in class CollectorIOException
public void setScorer(Scorer scorer)
throws IOException
setScorer in class CollectorIOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||