Module org.elasticsearch.server
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
ConstructorsConstructorDescriptionCancellableBulkScorer(org.apache.lucene.search.BulkScorer scorer, Runnable checkCancelled) -
Method Summary
-
Constructor Details
-
CancellableBulkScorer
-
-
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:
scorein classorg.apache.lucene.search.BulkScorer- Throws:
IOException
-
cost
public long cost()- Specified by:
costin classorg.apache.lucene.search.BulkScorer
-