com.browseengine.bobo.facets.impl
Class SimpleFacetHandler.SimpleGroupByFacetCountCollector

java.lang.Object
  extended by com.browseengine.bobo.facets.impl.DefaultFacetCountCollector
      extended by com.browseengine.bobo.facets.impl.GroupByFacetCountCollector
          extended by com.browseengine.bobo.facets.impl.SimpleFacetHandler.SimpleGroupByFacetCountCollector
All Implemented Interfaces:
FacetAccessible, FacetCountCollector
Enclosing class:
SimpleFacetHandler

public static final class SimpleFacetHandler.SimpleGroupByFacetCountCollector
extends GroupByFacetCountCollector


Field Summary
protected  int _totalGroups
           
 
Fields inherited from class com.browseengine.bobo.facets.impl.DefaultFacetCountCollector
_array, _count, _countlength, _dataCache, _ospec, _sel, intarraylist, intarraymgr
 
Fields inherited from interface com.browseengine.bobo.facets.FacetCountCollector
EMPTY_FACET_LIST
 
Constructor Summary
SimpleFacetHandler.SimpleGroupByFacetCountCollector(String name, FacetDataCache dataCache, int docBase, BrowseSelection sel, FacetSpec ospec)
           
 
Method Summary
 void collect(int docid)
          Collect a hit.
 void collectAll()
          Collects all hits.
 int getTotalGroups()
           
 
Methods inherited from class com.browseengine.bobo.facets.impl.DefaultFacetCountCollector
close, getCountDistribution, getFacet, getFacetDataCache, getFacets, getFacets, getName, iterator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_totalGroups

protected int _totalGroups
Constructor Detail

SimpleFacetHandler.SimpleGroupByFacetCountCollector

public SimpleFacetHandler.SimpleGroupByFacetCountCollector(String name,
                                                           FacetDataCache dataCache,
                                                           int docBase,
                                                           BrowseSelection sel,
                                                           FacetSpec ospec)
Method Detail

collect

public final void collect(int docid)
Description copied from interface: FacetCountCollector
Collect a hit. This is called for every hit, thus the implementation needs to be super-optimized.

Specified by:
collect in interface FacetCountCollector
Specified by:
collect in class DefaultFacetCountCollector
Parameters:
docid - doc

collectAll

public final void collectAll()
Description copied from interface: FacetCountCollector
Collects all hits. This is called once per request by the facet engine in certain scenarios.

Specified by:
collectAll in interface FacetCountCollector
Specified by:
collectAll in class DefaultFacetCountCollector

getTotalGroups

public final int getTotalGroups()
Specified by:
getTotalGroups in class GroupByFacetCountCollector


Copyright © 2011. All Rights Reserved.