Class CancellableBulkScorer

java.lang.Object
org.apache.lucene.search.BulkScorer
org.elasticsearch.search.internal.CancellableBulkScorer

public final class CancellableBulkScorer extends org.apache.lucene.search.BulkScorer
A BulkScorer wrapper that runs a Runnable on a regular basis so that the query can be interrupted.
  • Constructor Summary

    Constructors
    Constructor
    Description
    CancellableBulkScorer(org.apache.lucene.search.BulkScorer scorer, Runnable checkCancelled)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    long
     
    int
    score(org.apache.lucene.search.LeafCollector collector, org.apache.lucene.util.Bits acceptDocs, int min, int max)
     

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

    score

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CancellableBulkScorer

      public CancellableBulkScorer(org.apache.lucene.search.BulkScorer scorer, Runnable checkCancelled)
  • Method Details

    • score

      public int score(org.apache.lucene.search.LeafCollector collector, org.apache.lucene.util.Bits acceptDocs, int min, int max) throws IOException
      Specified by:
      score in class org.apache.lucene.search.BulkScorer
      Throws:
      IOException
    • cost

      public long cost()
      Specified by:
      cost in class org.apache.lucene.search.BulkScorer