public class TransformFilteringIterator<T2,T1> extends GridIteratorAdapter<T2>
| Constructor and Description |
|---|
TransformFilteringIterator(Iterator<? extends T1> iter,
IgniteClosure<? super T1,T2> clos,
boolean readOnly,
IgnitePredicate<? super T1>... preds) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNextX()
This method is the same as
Iterator.hasNext(), but allows for failure
with exception. |
T2 |
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. |
String |
toString() |
hasNext, iterator, next, removeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorforEachRemainingpublic TransformFilteringIterator(Iterator<? extends T1> iter, IgniteClosure<? super T1,T2> clos, boolean readOnly, IgnitePredicate<? super T1>... preds)
iter - Input iter.clos - Transforming closure to convert from T1 to T2.readOnly - If true, then resulting iter will not allow modifications to the underlying
collection.preds - Optional filtering predicates.public boolean hasNextX()
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.Iterator.hasNext()@Nullable public T2 nextX()
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.Iterator.next()public void removeX()
Iterator.remove(), but allows for failure
with exception.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.5.0 Release Date : May 23 2018