com.browseengine.bobo.facets
Class CombinedFacetAccessible

java.lang.Object
  extended by com.browseengine.bobo.facets.CombinedFacetAccessible
All Implemented Interfaces:
FacetAccessible

public class CombinedFacetAccessible
extends Object
implements FacetAccessible

Author:
nnarkhed

Field Summary
protected  boolean _closed
           
protected  FacetSpec _fspec
           
protected  List<FacetAccessible> _list
           
 
Constructor Summary
CombinedFacetAccessible(FacetSpec fspec, List<FacetAccessible> list)
           
 
Method Summary
 void close()
          Responsible for release resources used.
 int getCappedFacetCount(Object value, int cap)
           
 BrowseFacet getFacet(String value)
          Gets the facet given a value.
 int getFacetHitsCount(Object value)
          Gets the facet count given a value.
 List<BrowseFacet> getFacets()
          Gets gathered top facets
 FacetIterator iterator()
          Returns an iterator to visit all the facets
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_list

protected final List<FacetAccessible> _list

_fspec

protected final FacetSpec _fspec

_closed

protected boolean _closed
Constructor Detail

CombinedFacetAccessible

public CombinedFacetAccessible(FacetSpec fspec,
                               List<FacetAccessible> list)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getFacet

public BrowseFacet getFacet(String value)
Description copied from interface: FacetAccessible
Gets the facet given a value. This is a way for random accessing into the facet data structure.

Specified by:
getFacet in interface FacetAccessible
Parameters:
value - Facet value
Returns:
a facet with count filled in

getCappedFacetCount

public int getCappedFacetCount(Object value,
                               int cap)

getFacetHitsCount

public int getFacetHitsCount(Object value)
Description copied from interface: FacetAccessible
Gets the facet count given a value. This is a way for random accessing the facet count.

Specified by:
getFacetHitsCount in interface FacetAccessible
Parameters:
value - Facet value
Returns:
a facet with count filled in

getFacets

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

Specified by:
getFacets in interface FacetAccessible
Returns:
list of facets

close

public void close()
Description copied from interface: FacetAccessible
Responsible for release resources used. If the implementing class does not use a lot of resources, it does not have to do anything.

Specified by:
close in interface FacetAccessible

iterator

public FacetIterator iterator()
Description copied from interface: FacetAccessible
Returns an iterator to visit all the facets

Specified by:
iterator in interface FacetAccessible
Returns:
Returns a FacetIterator to iterate over all the facets


Copyright © 2005-2013. All Rights Reserved.