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

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
 BigNestedIntArray _nestedArray
           
 
Fields inherited from class com.browseengine.bobo.facets.data.FacetDataCache
freqs, maxIDs, minIDs, orderArray, valArray
 
Constructor Summary
MultiValueFacetDataCache()
           
 
Method Summary
 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.
 void setMaxItems(int maxItems)
           
 
Methods inherited from class com.browseengine.bobo.facets.data.FacetDataCache
convert
 
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
Constructor Detail

MultiValueFacetDataCache

public MultiValueFacetDataCache()
Method Detail

setMaxItems

public void setMaxItems(int maxItems)

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


Copyright © 2011. All Rights Reserved.