com.browseengine.bobo.facets.impl
Class SimpleGroupbyFacetHandler

java.lang.Object
  extended by com.browseengine.bobo.facets.FacetHandler<FacetHandler.FacetDataNone>
      extended by com.browseengine.bobo.facets.impl.SimpleGroupbyFacetHandler

public class SimpleGroupbyFacetHandler
extends FacetHandler<FacetHandler.FacetDataNone>


Nested Class Summary
 
Nested classes/interfaces inherited from class com.browseengine.bobo.facets.FacetHandler
FacetHandler.FacetDataNone, FacetHandler.TermCountSize
 
Field Summary
 
Fields inherited from class com.browseengine.bobo.facets.FacetHandler
_name
 
Constructor Summary
SimpleGroupbyFacetHandler(String name, LinkedHashSet<String> dependsOn)
           
SimpleGroupbyFacetHandler(String name, LinkedHashSet<String> dependsOn, String separator)
           
 
Method Summary
 RandomAccessFilter buildRandomAccessFilter(String value, Properties selectionProperty)
           
 DocComparatorSource getDocComparatorSource()
          builds a comparator to determine how sorting is done
 FacetCountCollectorSource getFacetCountCollectorSource(BrowseSelection sel, FacetSpec fspec)
          Gets a FacetCountCollector
 String[] getFieldValues(BoboIndexReader reader, int id)
          Gets the field value
 Object[] getRawFieldValues(BoboIndexReader reader, int id)
           
 FacetHandler.FacetDataNone load(BoboIndexReader reader)
          Load information from an index reader, initialized by BoboIndexReader
 
Methods inherited from class com.browseengine.bobo.facets.FacetHandler
buildFilter, buildRandomAccessAndFilter, buildRandomAccessOrFilter, clone, getDependedFacetHandler, getDependsOn, getFacetData, getFieldValue, getName, getTermCountSize, load, loadFacetData, loadFacetData, merge, putDependedFacetHandler, setTermCountSize, setTermCountSize
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleGroupbyFacetHandler

public SimpleGroupbyFacetHandler(String name,
                                 LinkedHashSet<String> dependsOn,
                                 String separator)

SimpleGroupbyFacetHandler

public SimpleGroupbyFacetHandler(String name,
                                 LinkedHashSet<String> dependsOn)
Method Detail

buildRandomAccessFilter

public RandomAccessFilter buildRandomAccessFilter(String value,
                                                  Properties selectionProperty)
                                           throws IOException
Specified by:
buildRandomAccessFilter in class FacetHandler<FacetHandler.FacetDataNone>
Throws:
IOException

getFacetCountCollectorSource

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

Specified by:
getFacetCountCollectorSource in class FacetHandler<FacetHandler.FacetDataNone>
Parameters:
sel - selection
fspec - facetSpec
Returns:
a FacetCountCollector

getFieldValues

public String[] getFieldValues(BoboIndexReader reader,
                               int id)
Description copied from class: FacetHandler
Gets the field value

Specified by:
getFieldValues in class FacetHandler<FacetHandler.FacetDataNone>
Parameters:
reader - index reader
id - doc
Returns:
array of field values
See Also:
FacetHandler.getFieldValue(BoboIndexReader,int)

getRawFieldValues

public Object[] getRawFieldValues(BoboIndexReader reader,
                                  int id)
Overrides:
getRawFieldValues in class FacetHandler<FacetHandler.FacetDataNone>

getDocComparatorSource

public DocComparatorSource getDocComparatorSource()
Description copied from class: FacetHandler
builds a comparator to determine how sorting is done

Specified by:
getDocComparatorSource in class FacetHandler<FacetHandler.FacetDataNone>
Returns:
a sort comparator

load

public FacetHandler.FacetDataNone load(BoboIndexReader reader)
                                throws IOException
Description copied from class: FacetHandler
Load information from an index reader, initialized by BoboIndexReader

Specified by:
load in class FacetHandler<FacetHandler.FacetDataNone>
Parameters:
reader - reader
Throws:
IOException


Copyright © 2011. All Rights Reserved.