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 Type Method Description
    org.apache.lucene.search.LeafCollector getLeafCollector​(org.apache.lucene.index.LeafReaderContext context)  
    boolean hasEarlyTerminated()
    Returns true if this collector has early terminated.

    Methods inherited from class org.apache.lucene.search.FilterCollector

    scoreMode, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Method Details

    • getLeafCollector

      public org.apache.lucene.search.LeafCollector getLeafCollector​(org.apache.lucene.index.LeafReaderContext context) throws java.io.IOException
      Specified by:
      getLeafCollector in interface org.apache.lucene.search.Collector
      Overrides:
      getLeafCollector in class org.apache.lucene.search.FilterCollector
      Throws:
      java.io.IOException
    • hasEarlyTerminated

      public boolean hasEarlyTerminated()
      Returns true if this collector has early terminated.