Package org.elasticsearch.search.query
Class EarlyTerminatingCollector
java.lang.Object
org.apache.lucene.search.FilterCollector
org.elasticsearch.search.query.EarlyTerminatingCollector
- All Implemented Interfaces:
org.apache.lucene.search.Collector
public class EarlyTerminatingCollector
extends org.apache.lucene.search.FilterCollector
A
Collector that early terminates collection after maxCountHits docs have been collected.-
Field Summary
-
Method Summary
Modifier and Type Method Description org.apache.lucene.search.LeafCollectorgetLeafCollector(org.apache.lucene.index.LeafReaderContext context)booleanhasEarlyTerminated()Returns true if this collector has early terminated.
-
Method Details
-
getLeafCollector
public org.apache.lucene.search.LeafCollector getLeafCollector(org.apache.lucene.index.LeafReaderContext context) throws java.io.IOException- Specified by:
getLeafCollectorin interfaceorg.apache.lucene.search.Collector- Overrides:
getLeafCollectorin classorg.apache.lucene.search.FilterCollector- Throws:
java.io.IOException
-
hasEarlyTerminated
public boolean hasEarlyTerminated()Returns true if this collector has early terminated.
-