Package org.apache.lucene.facet.taxonomy.writercache
Improves indexing time by caching a map of CategoryPath to their Ordinal.
-
Interface Summary Interface Description TaxonomyWriterCache TaxonomyWriterCache is a relatively simple interface for a cache of category->ordinal mappings, used in TaxonomyWriter implementations (such asDirectoryTaxonomyWriter
). -
Class Summary Class Description Cl2oTaxonomyWriterCache CollisionMap HashMap to store colliding labels.CompactLabelToOrdinal This is a very efficient LabelToOrdinal implementation that uses a CharBlockArray to store all labels and a configurable number of HashArrays to reference the labels.LabelToOrdinal Abstract class for storing Label->Ordinal mappings in a taxonomy.LruTaxonomyWriterCache LRUTaxonomyWriterCache
- good choice for huge taxonomies.NameHashIntCacheLRU An an LRU cache of mapping from name to int. -
Enum Summary Enum Description LruTaxonomyWriterCache.LRUType Determines cache type.