Class NameHashInt32CacheLru
An an LRU cache of mapping from name to int. Used to cache Ordinals of category paths. It uses as key, hash of the path instead of the path. This way the cache takes less RAM, but correctness depends on assuming no collisions.
NOTE: this was NameHashIntCacheLRU in Lucene
Note
This API is experimental and might change in incompatible ways in the next release.
Inheritance
System.Object
NameHashInt32CacheLru
Implements
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 NameHashInt32CacheLru : IInternalNameInt32CacheLru, INameInt32CacheLru
Properties
| Improve this Doc View SourceCount
Number of entries currently in the cache.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Limit
Maximum number of cache entries before eviction.
Declaration
public int Limit { get; }
Property Value
Type | Description |
---|---|
System.Int32 |