# Package org.apache.lucene.facet.taxonomy.writercache

Improves indexing time by caching a map of CategoryPath to their Ordinal.

See: Description

- Interface Summary
  Interface | Description
  --- | ---
  TaxonomyWriterCache | TaxonomyWriterCache is a relatively simple interface for a cache of category->ordinal mappings, used in TaxonomyWriter implementations (such as `DirectoryTaxonomyWriter`).

- Class Summary
  Class | Description
  --- | ---
  Cl2oTaxonomyWriterCache | `TaxonomyWriterCache` using `CompactLabelToOrdinal`.
  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 | LRU `TaxonomyWriterCache` - 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.

## Package org.apache.lucene.facet.taxonomy.writercache Description

Improves indexing time by caching a map of CategoryPath to their Ordinal.

Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.