Class NameHashIntCacheLRU
- java.lang.Object
-
- org.apache.lucene.facet.taxonomy.writercache.NameHashIntCacheLRU
-
public class NameHashIntCacheLRU extends java.lang.ObjectAn 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.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMaxSize()Maximum number of cache entries before eviction.intgetSize()Number of entries currently in the cache.
-