Class DirectoryTaxonomyReader

java.lang.Object
org.apache.lucene.facet.taxonomy.TaxonomyReader
org.apache.lucene.facet.taxonomy.directory.DirectoryTaxonomyReader
All Implemented Interfaces:
Closeable, AutoCloseable, Accountable

public class DirectoryTaxonomyReader extends TaxonomyReader implements Accountable
A TaxonomyReader which retrieves stored taxonomy information from a Directory.

Reading from the on-disk index on every method call is too slow, so this implementation employs caching: Some methods cache recent requests and their results, while other methods prefetch all the data into memory and then provide answers directly from in-memory tables. See the documentation of individual methods for comments on their performance.

WARNING: This API is experimental and might change in incompatible ways in the next release.