public static class GridIterableAdapter.IteratorWrapper<T> extends GridIteratorAdapter<T>
| Constructor and Description |
|---|
IteratorWrapper(Iterator<T> it)
Creates wrapper around the iterator.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNextX()
This method is the same as
Iterator.hasNext(), but allows for failure
with exception. |
T |
nextX()
This method is the same as
Iterator.next(), but allows for failure
with exception. |
void |
removeX()
This method is the same as
Iterator.remove(), but allows for failure
with exception. |
hasNext, iterator, next, removeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorforEachRemainingpublic boolean hasNextX()
throws IgniteCheckedException
Iterator.hasNext(), but allows for failure
with exception. Often iterators are used to iterate through values
that have not or have partially been received from remote nodes,
and need to account for possible network failures, rather than
just returning false out of Iterator.hasNext() method.True if iterator contains more elements.IgniteCheckedException - If no more elements can be returned due
to some failure, like a network error for example.Iterator.hasNext()public T nextX() throws IgniteCheckedException
Iterator.next(), but allows for failure
with exception. Often iterators are used to iterate through values
that have not or have partially been received from remote nodes,
and need to account for possible network failures, rather than
throwing NoSuchElementException runtime exception.sTrue if iterator contains more elements.IgniteCheckedException - If no more elements can be returned due
to some failure, like a network error for example.Iterator.next()public void removeX()
throws IgniteCheckedException
Iterator.remove(), but allows for failure
with exception.IgniteCheckedException - If failed.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021