Package org.elasticsearch.search.query
Class EarlyTerminatingCollector
- java.lang.Object
-
- org.apache.lucene.search.FilterCollector
-
- org.elasticsearch.search.query.EarlyTerminatingCollector
-
- All Implemented Interfaces:
Collector
public class EarlyTerminatingCollector extends FilterCollector
ACollectorthat early terminates collection aftermaxCountHitsdocs have been collected.
-
-
Field Summary
-
Fields inherited from class org.apache.lucene.search.FilterCollector
in
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LeafCollectorgetLeafCollector(LeafReaderContext context)Create a newcollectorto collect the given context.booleanhasEarlyTerminated()Returns true if this collector has early terminated.-
Methods inherited from class org.apache.lucene.search.FilterCollector
scoreMode, toString
-
-
-
-
Method Detail
-
getLeafCollector
public LeafCollector getLeafCollector(LeafReaderContext context) throws IOException
Description copied from interface:CollectorCreate a newcollectorto collect the given context.- Specified by:
getLeafCollectorin interfaceCollector- Overrides:
getLeafCollectorin classFilterCollector- Parameters:
context- next atomic reader context- Throws:
IOException
-
hasEarlyTerminated
public boolean hasEarlyTerminated()
Returns true if this collector has early terminated.
-
-