public class CategoryListData extends Object
Speeds up facets accumulation when more RAM is available.
Note that this will consume more memory: one int (4 bytes) for each category of each document.
Note: at the moment this class is insensitive to updates of the index, and, in particular, does not make use of Lucene's ability to refresh a single segment.
See CategoryListCache.register(CategoryListParams, CategoryListData)
and
CategoryListCache.loadAndRegister(CategoryListParams, IndexReader, TaxonomyReader, FacetIndexingParams)
.
Modifier | Constructor | Description |
---|---|---|
protected |
CategoryListData() |
Empty constructor for extensions with modified computation of the data.
|
Modifier and Type | Method | Description |
---|---|---|
CategoryListIterator |
iterator(int partition) |
Iterate on the category list data for the specified partition.
|
protected CategoryListData()
public CategoryListIterator iterator(int partition) throws IOException
IOException
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.