com.browseengine.bobo.facets.impl
Class CombinedLongFacetIterator

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

public class CombinedLongFacetIterator
extends LongFacetIterator

Author:
"Xiaoyang Gu"

Nested Class Summary
static class CombinedLongFacetIterator.LongFacetPriorityQueue
          Lucene PriorityQueue
 
Field Summary
 long facet
           
 
Fields inherited from class com.browseengine.bobo.api.FacetIterator
count
 
Constructor Summary
CombinedLongFacetIterator(List<LongFacetIterator> iterators)
           
CombinedLongFacetIterator(List<LongFacetIterator> iterators, int minHits)
           
 
Method Summary
 String format(long val)
           
 String format(Object 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
 long nextLong()
           
 long nextLong(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 long facet
Constructor Detail

CombinedLongFacetIterator

public CombinedLongFacetIterator(List<LongFacetIterator> iterators)

CombinedLongFacetIterator

public CombinedLongFacetIterator(List<LongFacetIterator> iterators,
                                 int minHits)
Method Detail

getFacet

public String getFacet()

format

public String format(long val)
Specified by:
format in class LongFacetIterator

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

nextLong

public long nextLong()
Specified by:
nextLong in class LongFacetIterator

nextLong

public long nextLong(int minHits)
Specified by:
nextLong in class LongFacetIterator


Copyright © 2011. All Rights Reserved.