com.browseengine.bobo.api.FacetIterator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bobo-browse Show documentation
Show all versions of bobo-browse Show documentation
Bobo is a Faceted Search implementation written purely in Java, an extension of Apache Lucene
The newest version!
/**
* Iterator to iterate over facets
*/
package com.browseengine.bobo.api;
import java.util.Iterator;
/**
* @author nnarkhed
*
*/
public abstract class FacetIterator implements Iterator> {
public int count;
@SuppressWarnings("rawtypes")
public Comparable facet;
/**
* Moves the iteration to the next facet
* @return the next facet value
*/
@Override
public abstract Comparable> next();
/**
* 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
* @return The next facet value. It returns null if there is no facet whose hitcount >= minHits.
*/
public abstract Comparable> next(int minHits);
public abstract String format(Object val);
}