com.browseengine.bobo.facets.impl
Class HistogramFacetHandler.HistogramFacetIterator

java.lang.Object
  extended by com.browseengine.bobo.api.FacetIterator
      extended by com.browseengine.bobo.api.IntFacetIterator
          extended by com.browseengine.bobo.facets.impl.HistogramFacetHandler.HistogramFacetIterator
All Implemented Interfaces:
Iterator<Comparable>
Enclosing class:
HistogramFacetHandler<T extends Number>

public static class HistogramFacetHandler.HistogramFacetIterator
extends IntFacetIterator


Field Summary
 
Fields inherited from class com.browseengine.bobo.api.IntFacetIterator
facet
 
Fields inherited from class com.browseengine.bobo.api.FacetIterator
count
 
Constructor Summary
HistogramFacetHandler.HistogramFacetIterator(int[] count, DecimalFormat formatter)
           
 
Method Summary
 String format(int val)
           
 String format(Object val)
           
 boolean hasNext()
           
 Integer next()
          Moves the iteration to the next facet
 Integer next(int minHits)
          Moves the iteration to the next facet whose hitcount >= minHits. returns null if there is no facet whose hitcount >= minHits.
 int nextInt()
           
 int nextInt(int minHits)
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HistogramFacetHandler.HistogramFacetIterator

public HistogramFacetHandler.HistogramFacetIterator(int[] count,
                                                    DecimalFormat formatter)
Method Detail

next

public Integer 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 Integer next(int minHits)
Description copied from class: FacetIterator
Moves the iteration to the next facet whose hitcount >= minHits. returns null if there is no facet whose hitcount >= minHits. Hence while using this method, it is useless to use hasNext() with it. After the next() method returns null, calling it repeatedly would result in undefined behavior

Specified by:
next in class FacetIterator
Returns:
The next facet value. It returns null if there is no facet whose hitcount >= minHits.

nextInt

public int nextInt()
Specified by:
nextInt in class IntFacetIterator

nextInt

public int nextInt(int minHits)
Specified by:
nextInt in class IntFacetIterator

hasNext

public boolean hasNext()

remove

public void remove()

format

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

format

public String format(int val)
Specified by:
format in class IntFacetIterator


Copyright © 2011. All Rights Reserved.