public class EarlyTerminatingCollector extends FilterCollector
A wrapper Collector that throws EarlyTerminatingCollectorException)
once a specified maximum number of documents are collected.
in| Constructor and Description |
|---|
EarlyTerminatingCollector(Collector delegate,
int maxDocsToCollect)
Wraps a
Collector, throwing EarlyTerminatingCollectorException
once the specified maximum is reached. |
| Modifier and Type | Method and Description |
|---|---|
LeafCollector |
getLeafCollector(LeafReaderContext context) |
scoreMode, toStringpublic 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 Collectpublic LeafCollector getLeafCollector(LeafReaderContext context) throws IOException
getLeafCollector in interface CollectorgetLeafCollector in class FilterCollectorIOExceptionCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.