Package org.elasticsearch.search.query
Class CancellableCollector
- java.lang.Object
-
- org.apache.lucene.search.FilterCollector
-
- org.elasticsearch.search.query.CancellableCollector
-
- All Implemented Interfaces:
org.apache.lucene.search.Collector
public class CancellableCollector extends org.apache.lucene.search.FilterCollector
Collector that checks if the task it is executed under is cancelled.
-
-
Constructor Summary
Constructors Constructor Description CancellableCollector(java.util.function.BooleanSupplier cancelled, org.apache.lucene.search.Collector in)
Constructor
-
Method Summary
Modifier and Type Method Description org.apache.lucene.search.LeafCollector
getLeafCollector(org.apache.lucene.index.LeafReaderContext context)
-
-
-
Method Detail
-
getLeafCollector
public org.apache.lucene.search.LeafCollector getLeafCollector(org.apache.lucene.index.LeafReaderContext context) throws java.io.IOException
- Specified by:
getLeafCollector
in interfaceorg.apache.lucene.search.Collector
- Overrides:
getLeafCollector
in classorg.apache.lucene.search.FilterCollector
- Throws:
java.io.IOException
-
-