Apache Lucene.Net 2.4.0 Class Library API

FilterManager Members

FilterManager overview

Public Static Methods

GetInstance 

Protected Internal Static Fields

DEFAULT_CACHE_CLEAN_SIZEThe default maximum number of Filters in the cache
DEFAULT_CACHE_SLEEP_TIMEThe default frequency of cache clenup
manager 

Public Instance Methods

Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetFilter Returns the cached version of the filter. Allows the caller to pass up a small filter but this will keep a persistent version around and allow the caching filter to do its job.
GetHashCode (inherited from Object)Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object)Gets the Type of the current instance.
SetCacheSize Sets the max size that cache should reach before it is cleaned up
SetCleanThreadSleepTime Sets the cache cleaning frequency in milliseconds.
ToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

Protected Internal Instance Constructors

FilterManager Constructor Sets up the FilterManager singleton.

Protected Internal Instance Fields

cacheThe cache itself
cacheCleanSizeMaximum allowed cache size
cleanSleepTimeCache cleaning frequency
filterCleanerCache cleaner that runs in a separate thread

See Also

FilterManager Class | Lucene.Net.Search Namespace