public interface GridIterator<T> extends Iterable<T>, GridSerializableIterator<T>
GridIterable
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. |
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()
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.NoSuchElementException
- If there are no more elements to
return.IgniteCheckedException
- If no more elements can be returned due
to some failure, like a network error for example.Iterator.next()
void removeX() throws IgniteCheckedException
Iterator.remove()
, but allows for failure
with exception.IgniteCheckedException
- If failed.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017