public class MultiValueFacetDataCache<T> extends FacetDataCache<T>
| Modifier and Type | Class and Description |
|---|---|
static class |
MultiValueFacetDataCache.AllocOnlyLoader
A loader that allocate data storage without loading data to BigNestedIntArray.
|
static class |
MultiValueFacetDataCache.MultiFacetDocComparatorSource |
FacetDataCache.FacetDocComparatorSource| Modifier and Type | Field and Description |
|---|---|
protected int |
_maxItems |
BigNestedIntArray |
_nestedArray |
protected boolean |
_overflow |
freqs, maxIDs, minIDs, orderArray, valArray| Constructor and Description |
|---|
MultiValueFacetDataCache() |
| Modifier and Type | Method and Description |
|---|---|
protected BigNestedIntArray.BufferedLoader |
getBufferedLoader(int maxdoc,
BoboIndexReader.WorkArea workArea) |
int |
getNumItems(int docid) |
void |
load(String fieldName,
org.apache.lucene.index.IndexReader reader,
TermListFactory<T> listFactory) |
void |
load(String fieldName,
org.apache.lucene.index.IndexReader reader,
TermListFactory<T> listFactory,
BoboIndexReader.WorkArea workArea)
loads multi-value facet data.
|
void |
load(String fieldName,
org.apache.lucene.index.IndexReader reader,
TermListFactory<T> listFactory,
org.apache.lucene.index.Term sizeTerm)
loads multi-value facet data.
|
protected void |
logOverflow(String fieldName) |
MultiValueFacetDataCache<T> |
setMaxItems(int maxItems) |
convert, getNegativeValueCountpublic final BigNestedIntArray _nestedArray
protected int _maxItems
protected boolean _overflow
public MultiValueFacetDataCache<T> setMaxItems(int maxItems)
public int getNumItems(int docid)
getNumItems in class FacetDataCache<T>public void load(String fieldName, org.apache.lucene.index.IndexReader reader, TermListFactory<T> listFactory) throws IOException
load in class FacetDataCache<T>IOExceptionpublic void load(String fieldName, org.apache.lucene.index.IndexReader reader, TermListFactory<T> listFactory, BoboIndexReader.WorkArea workArea) throws IOException
fieldName - reader - listFactory - workArea - IOExceptionpublic void load(String fieldName, org.apache.lucene.index.IndexReader reader, TermListFactory<T> listFactory, org.apache.lucene.index.Term sizeTerm) throws IOException
fieldName - sizeTerm - reader - listFactory - IOExceptionprotected void logOverflow(String fieldName)
protected BigNestedIntArray.BufferedLoader getBufferedLoader(int maxdoc, BoboIndexReader.WorkArea workArea)
Copyright © 2005–2013. All rights reserved.