com.browseengine.bobo.facets.data
Class MultiValueFacetDataCache<T>
java.lang.Object
com.browseengine.bobo.facets.data.FacetDataCache<T>
com.browseengine.bobo.facets.data.MultiValueFacetDataCache<T>
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- MultiValueWithWeightFacetDataCache
public class MultiValueFacetDataCache<T>
- extends FacetDataCache<T>
- Author:
- ymatsuda
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_nestedArray
public final BigNestedIntArray _nestedArray
_maxItems
protected int _maxItems
_overflow
protected boolean _overflow
MultiValueFacetDataCache
public MultiValueFacetDataCache()
setMaxItems
public MultiValueFacetDataCache<T> setMaxItems(int maxItems)
getNumItems
public int getNumItems(int docid)
- Overrides:
getNumItems in class FacetDataCache<T>
load
public void load(String fieldName,
org.apache.lucene.index.IndexReader reader,
TermListFactory<T> listFactory)
throws IOException
- Overrides:
load in class FacetDataCache<T>
- Throws:
IOException
load
public void load(String fieldName,
org.apache.lucene.index.IndexReader reader,
TermListFactory<T> listFactory,
BoboIndexReader.WorkArea workArea)
throws IOException
- loads multi-value facet data. This method uses a workarea to prepare loading.
- Parameters:
fieldName - reader - listFactory - workArea -
- Throws:
IOException
load
public void load(String fieldName,
org.apache.lucene.index.IndexReader reader,
TermListFactory<T> listFactory,
org.apache.lucene.index.Term sizeTerm)
throws IOException
- loads multi-value facet data. This method uses the count payload to allocate storage before loading data.
- Parameters:
fieldName - sizeTerm - reader - listFactory -
- Throws:
IOException
logOverflow
protected void logOverflow(String fieldName)
getBufferedLoader
protected BigNestedIntArray.BufferedLoader getBufferedLoader(int maxdoc,
BoboIndexReader.WorkArea workArea)
Copyright © 2005-2013. All Rights Reserved.