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

Constructor Summary
CombinedFacetAccessible(FacetSpec fspec, List<FacetAccessible> list)
           
 
Method Summary
 void close()
          Responsible for release resources used.
 BrowseFacet getFacet(String value)
          Gets the facet 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
 

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

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 © 2011. All Rights Reserved.