Lucene++ - a full-featured, c++ search engine
API Documentation
Go to the documentation of this file.
7 #ifndef FILTERMANAGER_H
8 #define FILTERMANAGER_H
30 static const int32_t DEFAULT_CACHE_CLEAN_SIZE;
48 virtual void initialize();
54 void setCacheSize(int32_t cacheCleanSize);
58 void setCleanThreadSleepTime(int64_t cleanSleepTime);
66 friend class FilterCleaner;
Filter caching singleton. It can be used to save filters locally for reuse. Also could be used as a p...
Definition: FilterManager.h:20
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
boost::shared_ptr< Filter > FilterPtr
Definition: LuceneTypes.h:358
MapIntFilterItem cache
The cache itself.
Definition: FilterManager.h:36
Definition: AbstractAllTermDocs.h:12
FilterCleanerPtr filterCleaner
Cache cleaner that runs in a separate thread.
Definition: FilterManager.h:45
Base class for all Lucene classes.
Definition: LuceneObject.h:31
boost::shared_ptr< FilterCleaner > FilterCleanerPtr
Definition: LuceneTypes.h:360
int64_t cleanSleepTime
Cache cleaning frequency.
Definition: FilterManager.h:42
boost::shared_ptr< FilterManager > FilterManagerPtr
Definition: LuceneTypes.h:367
static const int64_t DEFAULT_CACHE_SLEEP_TIME
The default frequency of cache cleanup.
Definition: FilterManager.h:33
int32_t cacheCleanSize
Maximum allowed cache size.
Definition: FilterManager.h:39
clucene.sourceforge.net