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.
-
ClassDescriptionHashMap to store colliding labels.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.Abstract class for storing Label->Ordinal mappings in a taxonomy.LRU
TaxonomyWriterCache- good choice for huge taxonomies.Determines cache type.An 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).