public class FacetDataCache<T> extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
FacetDataCache.FacetDocComparatorSource |
| Modifier and Type | Field and Description |
|---|---|
int[] |
freqs |
int[] |
maxIDs |
int[] |
minIDs |
BigSegmentedArray |
orderArray |
TermValueList<T> |
valArray |
| Constructor and Description |
|---|
FacetDataCache() |
FacetDataCache(BigSegmentedArray orderArray,
TermValueList<T> valArray,
int[] freqs,
int[] minIDs,
int[] maxIDs,
FacetHandler.TermCountSize termCountSize) |
| Modifier and Type | Method and Description |
|---|---|
static <T> int[] |
convert(FacetDataCache<T> dataCache,
T[] vals)
Same as convert(FacetDataCache dataCache,String[] vals) except that the
values are supplied in raw form so that we can take advantage of the type
information to find index faster.
|
protected int |
getNegativeValueCount(org.apache.lucene.index.IndexReader reader,
String field) |
int |
getNumItems(int docid) |
void |
load(String fieldName,
org.apache.lucene.index.IndexReader reader,
TermListFactory<T> listFactory) |
public BigSegmentedArray orderArray
public TermValueList<T> valArray
public int[] freqs
public int[] minIDs
public int[] maxIDs
public FacetDataCache(BigSegmentedArray orderArray, TermValueList<T> valArray, int[] freqs, int[] minIDs, int[] maxIDs, FacetHandler.TermCountSize termCountSize)
public FacetDataCache()
public int getNumItems(int docid)
protected int getNegativeValueCount(org.apache.lucene.index.IndexReader reader,
String field)
throws IOException
IOExceptionpublic void load(String fieldName, org.apache.lucene.index.IndexReader reader, TermListFactory<T> listFactory) throws IOException
IOExceptionpublic static <T> int[] convert(FacetDataCache<T> dataCache, T[] vals)
T - dataCache - vals - Copyright © 2005–2013. All rights reserved.