com.browseengine.bobo.facets.data
Class MultiValueFacetDataCache<T>

java.lang.Object
  extended by com.browseengine.bobo.facets.data.FacetDataCache<T>
      extended by 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

Nested Class Summary
static class MultiValueFacetDataCache.AllocOnlyLoader
          A loader that allocate data storage without loading data to BigNestedIntArray.
static class MultiValueFacetDataCache.MultiFacetDocComparatorSource
           
 
Nested classes/interfaces inherited from class com.browseengine.bobo.facets.data.FacetDataCache
FacetDataCache.FacetDocComparatorSource
 
Field Summary
protected  int _maxItems
           
 BigNestedIntArray _nestedArray
           
protected  boolean _overflow
           
 
Fields inherited from class com.browseengine.bobo.facets.data.FacetDataCache
freqs, maxIDs, minIDs, orderArray, valArray
 
Constructor Summary
MultiValueFacetDataCache()
           
 
Method Summary
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)
           
 
Methods inherited from class com.browseengine.bobo.facets.data.FacetDataCache
convert, getDictValueCount, getNegativeValueCount
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_nestedArray

public final BigNestedIntArray _nestedArray

_maxItems

protected int _maxItems

_overflow

protected boolean _overflow
Constructor Detail

MultiValueFacetDataCache

public MultiValueFacetDataCache()
Method Detail

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.