Package org.apache.lucene.facet.util
Class MultiCategoryListIterator
- java.lang.Object
-
- org.apache.lucene.facet.util.MultiCategoryListIterator
-
- All Implemented Interfaces:
CategoryListIterator
public class MultiCategoryListIterator extends Object implements CategoryListIterator
Iterates over multipleCategoryListIterators, consuming the provided iterators in order.- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
-
Constructor Summary
Constructors Constructor Description MultiCategoryListIterator(CategoryListIterator... iterators)Receives the iterators to iterate on
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleaninit()Fails if all given iterators fail to initlongnextCategory()Return a value larger thanInteger.MAX_VALUEonly if all iterators are exhaustedbooleanskipTo(int docId)Fails only if skipTo on all the provided iterators returnedfalse
-
-
-
Constructor Detail
-
MultiCategoryListIterator
public MultiCategoryListIterator(CategoryListIterator... iterators)
Receives the iterators to iterate on
-
-
Method Detail
-
init
public boolean init() throws IOExceptionFails if all given iterators fail to init- Specified by:
initin interfaceCategoryListIterator- Throws:
IOException
-
nextCategory
public long nextCategory() throws IOExceptionReturn a value larger thanInteger.MAX_VALUEonly if all iterators are exhausted- Specified by:
nextCategoryin interfaceCategoryListIterator- Throws:
IOException
-
skipTo
public boolean skipTo(int docId) throws IOExceptionFails only if skipTo on all the provided iterators returnedfalse- Specified by:
skipToin interfaceCategoryListIterator- Throws:
IOException
-
-