org.apache.blur.lucene.search
Class StopExecutionCollector

java.lang.Object
  extended by org.apache.lucene.search.Collector
      extended by org.apache.blur.lucene.search.StopExecutionCollector

public class StopExecutionCollector
extends org.apache.lucene.search.Collector


Nested Class Summary
static class StopExecutionCollector.StopExecutionCollectorException
           
 
Constructor Summary
StopExecutionCollector(org.apache.lucene.search.Collector collector, java.util.concurrent.atomic.AtomicBoolean running)
           
 
Method Summary
 boolean acceptsDocsOutOfOrder()
           
 void collect(int doc)
           
 void setNextReader(org.apache.lucene.index.AtomicReaderContext context)
           
 void setScorer(org.apache.lucene.search.Scorer scorer)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StopExecutionCollector

public StopExecutionCollector(org.apache.lucene.search.Collector collector,
                              java.util.concurrent.atomic.AtomicBoolean running)
Method Detail

acceptsDocsOutOfOrder

public boolean acceptsDocsOutOfOrder()
Specified by:
acceptsDocsOutOfOrder in class org.apache.lucene.search.Collector

collect

public void collect(int doc)
             throws IOException
Specified by:
collect in class org.apache.lucene.search.Collector
Throws:
IOException

setNextReader

public void setNextReader(org.apache.lucene.index.AtomicReaderContext context)
                   throws IOException
Specified by:
setNextReader in class org.apache.lucene.search.Collector
Throws:
IOException

setScorer

public void setScorer(org.apache.lucene.search.Scorer scorer)
               throws IOException
Specified by:
setScorer in class org.apache.lucene.search.Collector
Throws:
IOException


Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.