Class Cl2oTaxonomyWriterCache
ITaxonomyWriterCache using CompactLabelToOrdinal. Although called cache, it maintains in memory all the mappings from category to ordinal, relying on that CompactLabelToOrdinal is an efficient mapping for this purpose.
This is a Lucene.NET EXPERIMENTAL API, use at your own risk
Inheritance
System.Object
Cl2oTaxonomyWriterCache
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Lucene.Net.Facet.Taxonomy.WriterCache
Assembly: Lucene.Net.Facet.dll
Syntax
public class Cl2oTaxonomyWriterCache : ITaxonomyWriterCache, IDisposable
Constructors
| Improve this Doc View SourceCl2oTaxonomyWriterCache(Int32, Single, Int32)
Sole constructor.
Declaration
public Cl2oTaxonomyWriterCache(int initialCapcity, float loadFactor, int numHashArrays)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | initialCapcity | |
System.Single | loadFactor | |
System.Int32 | numHashArrays |
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 |
GetMemoryUsage()
Returns the number of bytes in memory used by this object.
Declaration
public virtual int GetMemoryUsage()
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
System.IDisposable