com.browseengine.bobo.facets.impl
Class DefaultShortFacetIterator
java.lang.Object
com.browseengine.bobo.api.FacetIterator
com.browseengine.bobo.api.ShortFacetIterator
com.browseengine.bobo.facets.impl.DefaultShortFacetIterator
- All Implemented Interfaces:
- Iterator<Comparable>
public class DefaultShortFacetIterator
- extends ShortFacetIterator
- Author:
- "Xiaoyang Gu"
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_valList
public TermShortList _valList
DefaultShortFacetIterator
public DefaultShortFacetIterator(TermShortList valList,
int[] countarray,
int countlength,
boolean zeroBased)
getFacet
public String getFacet()
format
public String format(short val)
- Specified by:
format in class ShortFacetIterator
format
public String format(Object val)
- Specified by:
format in class FacetIterator
getFacetCount
public int getFacetCount()
hasNext
public boolean hasNext()
next
public String 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
nextShort
public short nextShort()
- Specified by:
nextShort in class ShortFacetIterator
remove
public void remove()
next
public String 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.
nextShort
public short nextShort(int minHits)
- Specified by:
nextShort in class ShortFacetIterator
Copyright © 2011. All Rights Reserved.