# 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
  --- | ---
  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.
  UTF8TaxonomyWriterCache | A "cache" that never frees memory, and stores labels in a BytesRefHash (utf-8 encoding).

- 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-2019 Apache Software Foundation. All Rights Reserved.