com.browseengine.bobo.api
Class MappedFacetAccessible

java.lang.Object
  extended by com.browseengine.bobo.api.MappedFacetAccessible
All Implemented Interfaces:
FacetAccessible, Serializable

public class MappedFacetAccessible
extends Object
implements FacetAccessible, Serializable

See Also:
Serialized Form

Constructor Summary
MappedFacetAccessible(BrowseFacet[] facets)
           
 
Method Summary
 void close()
           
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MappedFacetAccessible

public MappedFacetAccessible(BrowseFacet[] facets)
Method Detail

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()
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.