org.apache.lucene.facet.util
public class MultiCategoryListIterator extends Object implements CategoryListIterator
CategoryListIterators, consuming the provided
iterators in order.| Constructor and Description |
|---|
MultiCategoryListIterator(CategoryListIterator... iterators)
Receives the iterators to iterate on
|
| Modifier and Type | Method and Description |
|---|---|
void |
getOrdinals(int docID,
IntsRef ints)
Stores the category ordinals of the given document ID in the given
IntsRef, starting at position 0 upto IntsRef.length. |
boolean |
setNextReader(AtomicReaderContext context)
Sets the
AtomicReaderContext for which
CategoryListIterator.getOrdinals(int, IntsRef) calls will be made. |
public MultiCategoryListIterator(CategoryListIterator... iterators)
public boolean setNextReader(AtomicReaderContext context) throws IOException
CategoryListIteratorAtomicReaderContext for which
CategoryListIterator.getOrdinals(int, IntsRef) calls will be made. Returns true iff any
of the documents in this reader have category ordinals. This method must be
called before any calls to CategoryListIterator.getOrdinals(int, IntsRef).setNextReader in interface CategoryListIteratorIOExceptionpublic void getOrdinals(int docID,
IntsRef ints)
throws IOException
CategoryListIteratorIntsRef, starting at position 0 upto IntsRef.length. Grows
the IntsRef if it is not large enough.
NOTE: if the requested document does not have category ordinals
associated with it, IntsRef.length is set to zero.
getOrdinals in interface CategoryListIteratorIOExceptionCopyright © 2000-2014 Apache Software Foundation. All Rights Reserved.