com.browseengine.bobo.facets.impl
Class CombinedShortFacetIterator

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

public class CombinedShortFacetIterator
extends ShortFacetIterator

Author:
"Xiaoyang Gu"

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

Field Detail

facet

public short facet
Constructor Detail

CombinedShortFacetIterator

public CombinedShortFacetIterator(List<ShortFacetIterator> iterators)

CombinedShortFacetIterator

public CombinedShortFacetIterator(List<ShortFacetIterator> iterators,
                                  int minHits)
Method Detail

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

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

next

public String 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()

nextShort

public short nextShort()
Specified by:
nextShort in class ShortFacetIterator

nextShort

public short nextShort(int minHits)
Specified by:
nextShort in class ShortFacetIterator


Copyright © 2011. All Rights Reserved.