CategoryListIteratorpublic class MultiCategoryListIterator extends Object implements CategoryListIterator
CategoryListIterators, consuming the provided
iterators in order.| Constructor | Description |
|---|---|
MultiCategoryListIterator(CategoryListIterator... iterators) |
Receives the iterators to iterate on
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
init() |
Fails if all given iterators fail to init
|
long |
nextCategory() |
Return a value larger than
Integer.MAX_VALUE only if all
iterators are exhausted |
boolean |
skipTo(int docId) |
Fails only if skipTo on all the provided iterators returned
false |
public MultiCategoryListIterator(CategoryListIterator... iterators)
public boolean init()
throws IOException
init in interface CategoryListIteratorIOExceptionpublic long nextCategory()
throws IOException
Integer.MAX_VALUE only if all
iterators are exhaustednextCategory in interface CategoryListIteratorIOExceptionpublic boolean skipTo(int docId)
throws IOException
falseskipTo in interface CategoryListIteratorIOExceptionCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.