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
Fields inherited from class org.apache.lucene.search.FilterCollector
in
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.search.LeafCollector
getLeafCollector(org.apache.lucene.index.LeafReaderContext context)
boolean
Returns true if this collector has early terminated.Methods inherited from class org.apache.lucene.search.FilterCollector
scoreMode, toString
-
Method Details
-
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
- Overrides:
getLeafCollector
in classorg.apache.lucene.search.FilterCollector
- Throws:
IOException
-
hasEarlyTerminated
public boolean hasEarlyTerminated()Returns true if this collector has early terminated.
-