com.browseengine.bobo.facets.attribute
Class AttributesFacetHandler

java.lang.Object
  extended by com.browseengine.bobo.facets.FacetHandler<FacetDataCache>
      extended by com.browseengine.bobo.facets.impl.RangeFacetHandler
          extended by com.browseengine.bobo.facets.range.MultiRangeFacetHandler
              extended by com.browseengine.bobo.facets.attribute.AttributesFacetHandler
All Implemented Interfaces:
FacetScoreable

public class AttributesFacetHandler
extends MultiRangeFacetHandler


Nested Class Summary
 
Nested classes/interfaces inherited from class com.browseengine.bobo.facets.impl.RangeFacetHandler
RangeFacetHandler.RangeBoboDocScorer
 
Nested classes/interfaces inherited from class com.browseengine.bobo.facets.FacetHandler
FacetHandler.FacetDataNone, FacetHandler.TermCountSize
 
Field Summary
static char DEFAULT_SEPARATOR
           
static String MAX_FACETS_PER_KEY_PROP_NAME
           
static String SEPARATOR_PROP_NAME
           
 
Fields inherited from class com.browseengine.bobo.facets.impl.RangeFacetHandler
_indexFieldName, _predefinedRanges, _termListFactory
 
Fields inherited from class com.browseengine.bobo.facets.FacetHandler
_name
 
Constructor Summary
AttributesFacetHandler(String name, String indexFieldName, TermListFactory termListFactory, org.apache.lucene.index.Term sizePayloadTerm, Map<String,String> facetProps)
           
 
Method Summary
 RandomAccessFilter buildRandomAccessFilter(String value, Properties prop)
           
 RandomAccessFilter buildRandomAccessOrFilter(String[] vals, Properties prop, boolean isNot)
           
static String convertToRangeString(String key, char separator)
           
 FacetCountCollectorSource getFacetCountCollectorSource(BrowseSelection browseSelection, FacetSpec ospec)
          Gets a FacetCountCollector
 int getFacetsPerKey(BrowseSelection browseSelection)
           
 char getSeparator(BrowseSelection browseSelection)
           
 
Methods inherited from class com.browseengine.bobo.facets.range.MultiRangeFacetHandler
getDocComparatorSource, getDocScorer, getFacetData, getFieldValues, getRawFieldValues, load, load, setMaxItems
 
Methods inherited from class com.browseengine.bobo.facets.impl.RangeFacetHandler
getNumItems, hasPredefinedRanges
 
Methods inherited from class com.browseengine.bobo.facets.FacetHandler
buildFilter, buildRandomAccessAndFilter, clone, getDependedFacetHandler, getDependsOn, getFacetCountCollectorSource, getFieldValue, getName, getTermCountSize, loadFacetData, loadFacetData, merge, putDependedFacetHandler, setTermCountSize, setTermCountSize
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_SEPARATOR

public static final char DEFAULT_SEPARATOR
See Also:
Constant Field Values

SEPARATOR_PROP_NAME

public static final String SEPARATOR_PROP_NAME
See Also:
Constant Field Values

MAX_FACETS_PER_KEY_PROP_NAME

public static final String MAX_FACETS_PER_KEY_PROP_NAME
See Also:
Constant Field Values
Constructor Detail

AttributesFacetHandler

public AttributesFacetHandler(String name,
                              String indexFieldName,
                              TermListFactory termListFactory,
                              org.apache.lucene.index.Term sizePayloadTerm,
                              Map<String,String> facetProps)
Method Detail

getSeparator

public char getSeparator(BrowseSelection browseSelection)

buildRandomAccessFilter

public RandomAccessFilter buildRandomAccessFilter(String value,
                                                  Properties prop)
                                           throws IOException
Overrides:
buildRandomAccessFilter in class MultiRangeFacetHandler
Throws:
IOException

convertToRangeString

public static String convertToRangeString(String key,
                                          char separator)

buildRandomAccessOrFilter

public RandomAccessFilter buildRandomAccessOrFilter(String[] vals,
                                                    Properties prop,
                                                    boolean isNot)
                                             throws IOException
Overrides:
buildRandomAccessOrFilter in class RangeFacetHandler
Throws:
IOException

getFacetsPerKey

public int getFacetsPerKey(BrowseSelection browseSelection)

getFacetCountCollectorSource

public FacetCountCollectorSource getFacetCountCollectorSource(BrowseSelection browseSelection,
                                                              FacetSpec ospec)
Description copied from class: FacetHandler
Gets a FacetCountCollector

Overrides:
getFacetCountCollectorSource in class MultiRangeFacetHandler
Parameters:
browseSelection - selection
ospec - facetSpec
Returns:
a FacetCountCollector


Copyright © 2005-2013. All Rights Reserved.