com.browseengine.bobo.facets.impl
Class CombinedFacetIterator

java.lang.Object
  extended by com.browseengine.bobo.api.FacetIterator
      extended by com.browseengine.bobo.facets.impl.CombinedFacetIterator
All Implemented Interfaces:
Iterator<Comparable>

public class CombinedFacetIterator
extends FacetIterator

Author:
nnarkhed

Field Summary
 
Fields inherited from class com.browseengine.bobo.api.FacetIterator
count, facet
 
Constructor Summary
CombinedFacetIterator(List<FacetIterator> iterators)
           
 
Method Summary
 String format(Object val)
           
 boolean hasNext()
           
 Comparable next()
          Moves the iteration to the next facet
 Comparable next(int minHits)
          This version of the next() method applies the minHits from the facet spec before returning the facet and its hitcount
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CombinedFacetIterator

public CombinedFacetIterator(List<FacetIterator> iterators)
Method Detail

next

public Comparable next()
Description copied from class: FacetIterator
Moves the iteration to the next facet

Specified by:
next in interface Iterator<Comparable>
Specified by:
next in class FacetIterator
Returns:
the next facet value

next

public Comparable next(int minHits)
This version of the next() method applies the minHits from the facet spec before returning the facet and its hitcount

Specified by:
next in class FacetIterator
Parameters:
minHits - the minHits from the facet spec for CombinedFacetAccessible
Returns:
The next facet that obeys the minHits

hasNext

public boolean hasNext()

remove

public void remove()

format

public String format(Object val)
Specified by:
format in class FacetIterator


Copyright © 2011. All Rights Reserved.