Package org.apache.solr.search
Class CancellableCollector
- java.lang.Object
-
- org.apache.solr.search.CancellableCollector
-
- All Implemented Interfaces:
org.apache.lucene.search.Collector
,org.apache.solr.client.solrj.util.Cancellable
public class CancellableCollector extends Object implements org.apache.lucene.search.Collector, org.apache.solr.client.solrj.util.Cancellable
Allows a query to be cancelled
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CancellableCollector.QueryCancelledException
Thrown when a query gets cancelled
-
Constructor Summary
Constructors Constructor Description CancellableCollector(org.apache.lucene.search.Collector collector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancel()
org.apache.lucene.search.Collector
getInternalCollector()
org.apache.lucene.search.LeafCollector
getLeafCollector(org.apache.lucene.index.LeafReaderContext context)
org.apache.lucene.search.ScoreMode
scoreMode()
-
-
-
Method Detail
-
getLeafCollector
public org.apache.lucene.search.LeafCollector getLeafCollector(org.apache.lucene.index.LeafReaderContext context) throws IOException
- Specified by:
getLeafCollector
in interfaceorg.apache.lucene.search.Collector
- Throws:
IOException
-
scoreMode
public org.apache.lucene.search.ScoreMode scoreMode()
- Specified by:
scoreMode
in interfaceorg.apache.lucene.search.Collector
-
cancel
public void cancel()
- Specified by:
cancel
in interfaceorg.apache.solr.client.solrj.util.Cancellable
-
getInternalCollector
public org.apache.lucene.search.Collector getInternalCollector()
-
-