Class LruTaxonomyWriterCache
LRU ITaxonomyWriterCache - good choice for huge taxonomies.
This is a Lucene.NET EXPERIMENTAL API, use at your own risk
Inheritance
System.Object
LruTaxonomyWriterCache
Namespace: Lucene.Net.Facet.Taxonomy.WriterCache
Assembly: Lucene.Net.Facet.dll
Syntax
public class LruTaxonomyWriterCache : object, ITaxonomyWriterCache, IDisposable
Constructors
| Improve this Doc View SourceLruTaxonomyWriterCache(Int32)
Creates this with LRU_HASHED method.
Declaration
public LruTaxonomyWriterCache(int cacheSize)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | cacheSize |
LruTaxonomyWriterCache(Int32, LruTaxonomyWriterCache.LRUType)
Creates this with the specified method.
Declaration
public LruTaxonomyWriterCache(int cacheSize, LruTaxonomyWriterCache.LRUType lruType)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | cacheSize | |
LruTaxonomyWriterCache.LRUType | lruType |
Properties
| Improve this Doc View SourceIsFull
Declaration
public virtual bool IsFull { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceClear()
Declaration
public virtual void Clear()
Dispose()
Declaration
public virtual void Dispose()
Get(FacetLabel)
Declaration
public virtual int Get(FacetLabel categoryPath)
Parameters
Type | Name | Description |
---|---|---|
FacetLabel | categoryPath |
Returns
Type | Description |
---|---|
System.Int32 |
Put(FacetLabel, Int32)
Declaration
public virtual bool Put(FacetLabel categoryPath, int ordinal)
Parameters
Type | Name | Description |
---|---|---|
FacetLabel | categoryPath | |
System.Int32 | ordinal |
Returns
Type | Description |
---|---|
System.Boolean |
Implements
IDisposable