public class ConcurrentMultiDataIterator extends Object implements MultiDataIterator
MultiDataIterator
it will flatten it by getting its respective list of iterators.
Note, this implementation assumes that hasNext() is called before next() is
called. And that next() is called only when hasNext() returns
true.
| Constructor and Description |
|---|
ConcurrentMultiDataIterator(DataIterator[] iterators,
int threadPoolSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Clean up after any resources associated with this iterator The iterator can be closed even if
the iterator wasn't iterated over all of its elements.
|
boolean |
hasNext() |
DataIterator[] |
iterators()
Returns the underlying iterators.
|
Object |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic ConcurrentMultiDataIterator(DataIterator[] iterators, int threadPoolSize)
public DataIterator[] iterators()
MultiDataIteratoriterators in interface MultiDataIteratorpublic void close()
DataIteratorclose in interface DataIteratorCopyright © GigaSpaces.