public class OrdinalsCache extends Object
OrdinalsCache.CachedOrdsholds the ordinals in a raw
int, and therefore consumes as much RAM as the total number of ordinals found in the segment.
OrdinalsCache.CachedOrds is limited to 2.1B total ordinals. If
that is a limitation for you then consider limiting the segment size to less
documents, or use an alternative cache which pages through the category
NOTE: when using this cache, it is advised to use a
DocValuesFormat that does not cache the data in memory, at least for
the category lists fields, or otherwise you'll be doing double-caching.
|Modifier and Type||Class and Description|
Holds the cached ordinals in two paralel
|Constructor and Description|
public static OrdinalsCache.CachedOrds getCachedOrds(AtomicReaderContext context, CategoryListParams clp) throws IOException
OrdinalsCache.CachedOrdsrelevant to the given
nullif there is no
BinaryDocValuesin this reader for the requested
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.