Package org.apache.lucene.facet.taxonomy.writercache
package org.apache.lucene.facet.taxonomy.writercache
Improves indexing time by caching a map of CategoryPath to their Ordinal.
-
ClassDescriptionAbstract class for storing Label->Ordinal mappings in a taxonomy.LRU
TaxonomyWriterCache
- good choice for huge taxonomies.Determines cache type.An LRU cache of mapping from name to int.TaxonomyWriterCache is a relatively simple interface for a cache of category->ordinal mappings, used in TaxonomyWriter implementations (such asDirectoryTaxonomyWriter
).A "cache" that never frees memory, and stores labels in a BytesRefHash (utf-8 encoding).