public class CancellableCollector
extends org.apache.lucene.search.FilterCollector
Constructor and Description |
---|
CancellableCollector(java.util.function.BooleanSupplier cancelled,
org.apache.lucene.search.Collector in)
Constructor
|
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.search.LeafCollector |
getLeafCollector(org.apache.lucene.index.LeafReaderContext context) |
public CancellableCollector(java.util.function.BooleanSupplier cancelled, org.apache.lucene.search.Collector in)
cancelled
- supplier of the cancellation flag, the supplier will be called for each segmentin
- wrapped collectorpublic org.apache.lucene.search.LeafCollector getLeafCollector(org.apache.lucene.index.LeafReaderContext context) throws java.io.IOException
getLeafCollector
in interface org.apache.lucene.search.Collector
getLeafCollector
in class org.apache.lucene.search.FilterCollector
java.io.IOException