com.browseengine.bobo.facets.attribute
Class AttributesFacetCountCollector

java.lang.Object
  extended by com.browseengine.bobo.facets.impl.DefaultFacetCountCollector
      extended by com.browseengine.bobo.facets.attribute.AttributesFacetCountCollector
All Implemented Interfaces:
FacetAccessible, FacetCountCollector

public final class AttributesFacetCountCollector
extends DefaultFacetCountCollector


Field Summary
 BigNestedIntArray _array
           
 
Fields inherited from class com.browseengine.bobo.facets.impl.DefaultFacetCountCollector
_count, _countlength, _dataCache, _ospec, _sel, intarraylist, intarraymgr
 
Fields inherited from interface com.browseengine.bobo.facets.FacetCountCollector
EMPTY_FACET_LIST
 
Constructor Summary
AttributesFacetCountCollector(AttributesFacetHandler attributesFacetHandler, String name, MultiValueFacetDataCache dataCache, int docBase, BrowseSelection browseSelection, FacetSpec ospec, int numFacetsPerKey, char separator)
           
 
Method Summary
 void collect(int docid)
          Collect a hit.
 void collectAll()
          Collects all hits.
 List<BrowseFacet> getFacets()
          Gets gathered top facets
 FacetIterator iterator()
          This function returns an Iterator to visit the facets in value order
 
Methods inherited from class com.browseengine.bobo.facets.impl.DefaultFacetCountCollector
close, getCountDistribution, getFacet, getFacetDataCache, getFacetHitsCount, getFacets, getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_array

public final BigNestedIntArray _array
Constructor Detail

AttributesFacetCountCollector

public AttributesFacetCountCollector(AttributesFacetHandler attributesFacetHandler,
                                     String name,
                                     MultiValueFacetDataCache dataCache,
                                     int docBase,
                                     BrowseSelection browseSelection,
                                     FacetSpec ospec,
                                     int numFacetsPerKey,
                                     char separator)
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

getFacets

public List<BrowseFacet> getFacets()
Description copied from interface: FacetAccessible
Gets gathered top facets

Specified by:
getFacets in interface FacetAccessible
Overrides:
getFacets in class DefaultFacetCountCollector
Returns:
list of facets

iterator

public FacetIterator iterator()
Description copied from class: DefaultFacetCountCollector
This function returns an Iterator to visit the facets in value order

Specified by:
iterator in interface FacetAccessible
Overrides:
iterator in class DefaultFacetCountCollector
Returns:
The Iterator to iterate over the facets in value order


Copyright © 2005-2013. All Rights Reserved.