public abstract class BatchIteratorLink<T> extends BatchTLinkImpl<java.util.Iterator<T>,T>
Modifier | Constructor and Description |
---|---|
protected |
BatchIteratorLink() |
Modifier and Type | Method and Description |
---|---|
<P> ComputeTSet<P,java.util.Iterator<T>> |
flatmap(FlatMapFunc<P,T> mapFn)
Performs flat map operation based on the
FlatMapFunc provided |
void |
forEach(ApplyFunc<T> applyFunction)
Applies a function elementwise.
|
ComputeTSet<java.lang.Object,java.util.Iterator<T>> |
lazyForEach(ApplyFunc<T> applyFunction) |
<P> ComputeTSet<P,java.util.Iterator<T>> |
map(MapFunc<P,T> mapFn)
Performs elementwise map operation based on the
MapFunc provided |
<K,V> KeyedTSet<K,V> |
mapToTuple(MapFunc<Tuple<K,V>,T> mapToTupFn)
|
cache, compute, compute, compute, compute, getTSetEnv, persist, sink
getSchema
addChildToGraph, equals, getId, getName, getSourceParallelism, getTargetParallelism, hashCode, rename, setTSetEnv, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
setName
lazyCache, lazyPersist
build, getEdge
generateID, getTBaseGraph
public <P> ComputeTSet<P,java.util.Iterator<T>> map(MapFunc<P,T> mapFn)
TLink
MapFunc
providedP
- output typemapFn
- map function T0 to Opublic <P> ComputeTSet<P,java.util.Iterator<T>> flatmap(FlatMapFunc<P,T> mapFn)
TLink
FlatMapFunc
providedP
- map function to T0 to multiple elements of <O>mapFn
- map function which can produce multiple elements for a single <T0> elementpublic <K,V> KeyedTSet<K,V> mapToTuple(MapFunc<Tuple<K,V>,T> mapToTupFn)
TLink
public ComputeTSet<java.lang.Object,java.util.Iterator<T>> lazyForEach(ApplyFunc<T> applyFunction)