Package org.apache.solr.search
Class CancellableCollector
- java.lang.Object
-
- org.apache.solr.search.CancellableCollector
-
- All Implemented Interfaces:
org.apache.lucene.search.Collector,Cancellable
public class CancellableCollector extends Object implements org.apache.lucene.search.Collector, Cancellable
Allows a query to be cancelled
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCancellableCollector.QueryCancelledExceptionThrown 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 voidcancel()org.apache.lucene.search.CollectorgetInternalCollector()org.apache.lucene.search.LeafCollectorgetLeafCollector(org.apache.lucene.index.LeafReaderContext context)org.apache.lucene.search.ScoreModescoreMode()
-
-
-
Method Detail
-
getLeafCollector
public org.apache.lucene.search.LeafCollector getLeafCollector(org.apache.lucene.index.LeafReaderContext context) throws IOException- Specified by:
getLeafCollectorin interfaceorg.apache.lucene.search.Collector- Throws:
IOException
-
scoreMode
public org.apache.lucene.search.ScoreMode scoreMode()
- Specified by:
scoreModein interfaceorg.apache.lucene.search.Collector
-
cancel
public void cancel()
- Specified by:
cancelin interfaceCancellable
-
getInternalCollector
public org.apache.lucene.search.Collector getInternalCollector()
-
-