Lucene++ - a full-featured, c++ search engine
API Documentation
Go to the documentation of this file.
7 #ifndef TIMELIMITINGCOLLECTOR_H
8 #define TIMELIMITINGCOLLECTOR_H
31 static const int32_t DEFAULT_RESOLUTION;
50 static int64_t getResolution();
63 static void setResolution(int64_t newResolution);
66 static void stopTimer();
78 void setGreedy(
bool greedy);
82 virtual void collect(int32_t doc);
84 virtual void setNextReader(
const IndexReaderPtr& reader, int32_t docBase);
85 virtual void setScorer(
const ScorerPtr& scorer);
86 virtual bool acceptsDocsOutOfOrder();
92 friend class TimerThread;
int64_t timeout
Definition: TimeLimitingCollector.h:42
boost::shared_ptr< TimerThread > TimerThreadPtr
Definition: LuceneTypes.h:470
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
CollectorPtr collector
Definition: TimeLimitingCollector.h:43
The TimeLimitingCollector is used to timeout search requests that take longer than the maximum allowe...
Definition: TimeLimitingCollector.h:17
int64_t t0
Definition: TimeLimitingCollector.h:41
Definition: AbstractAllTermDocs.h:12
int32_t docBase
Definition: TimeLimitingCollector.h:45
boost::shared_ptr< IndexReader > IndexReaderPtr
Definition: LuceneTypes.h:157
static int64_t resolution
Definition: TimeLimitingCollector.h:38
boost::shared_ptr< Collector > CollectorPtr
Definition: LuceneTypes.h:295
boost::shared_ptr< Scorer > ScorerPtr
Definition: LuceneTypes.h:429
bool greedy
Definition: TimeLimitingCollector.h:39
bool DEFAULT_GREEDY
Default for isGreedy().
Definition: TimeLimitingCollector.h:35
Collectors are primarily meant to be used to gather raw results from a search, and implement sorting ...
Definition: Collector.h:100
clucene.sourceforge.net