S
- The type of the delegate iteratorT
- The returned typepublic class DoFnIterator<S,T> extends Object implements Iterator<T>
Iterator<T>
that combines a delegate Iterator<S>
and a DoFn<S, T>
, generating
data by passing the contents of the iterator through the function. Note that the input DoFn
should
have both its setContext
and initialize
functions called before it is passed to
the constructor.Constructor and Description |
---|
DoFnIterator(Iterator<S> iter,
DoFn<S,T> fn) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
T |
next() |
void |
remove() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
Copyright © 2017 The Apache Software Foundation. All rights reserved.