public abstract class BatchSingleLink<T> extends BatchTLinkImpl<T,T>
Modifier and Type | Method and Description |
---|---|
StorableTBase<T> |
cache()
Runs this TSet and caches the data to an in-memory
DataPartition and exposes the data as another TSet. |
<P> ComputeTSet<P,T> |
flatmap(FlatMapFunc<P,T> mapFn)
Performs flat map operation based on the
FlatMapFunc provided |
void |
forEach(ApplyFunc<T> applyFunction)
Applies a function elementwise.
|
StorableTBase<T> |
lazyCache()
Performs caching lazily.
|
ComputeTSet<java.lang.Object,T> |
lazyForEach(ApplyFunc<T> applyFunction) |
StorableTBase<T> |
lazyPersist()
Performs persisting lazily.
|
<P> ComputeTSet<P,T> |
map(MapFunc<P,T> mapFn)
Performs elementwise map operation based on the
MapFunc provided |
<K,O> KeyedTSet<K,O> |
mapToTuple(MapFunc<Tuple<K,O>,T> genTupleFn)
|
StorableTBase<T> |
persist()
Similar to cache, but the data is stored in a disk based
DataPartition . |
compute, compute, compute, compute, getTSetEnv, sink
getSchema
addChildToGraph, equals, getId, getName, getSourceParallelism, getTargetParallelism, hashCode, rename, setTSetEnv, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
setName
build, getEdge
generateID, getTBaseGraph
public <P> ComputeTSet<P,T> map(MapFunc<P,T> mapFn)
TLink
MapFunc
providedP
- output typemapFn
- map function T0 to Opublic <P> ComputeTSet<P,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 void forEach(ApplyFunc<T> applyFunction)
TLink
ApplyFunc
does not
return anything.applyFunction
- apply functionpublic ComputeTSet<java.lang.Object,T> lazyForEach(ApplyFunc<T> applyFunction)
public <K,O> KeyedTSet<K,O> mapToTuple(MapFunc<Tuple<K,O>,T> genTupleFn)
TLink
public StorableTBase<T> lazyCache()
StoringData
TSet
is evaluated explicitly.public StorableTBase<T> cache()
StoringData
DataPartition
and exposes the data as another TSet.cache
in interface StoringData<T>
cache
in class BatchTLinkImpl<T,T>
public StorableTBase<T> lazyPersist()
StoringData
public StorableTBase<T> persist()
StoringData
DataPartition
. This method would also expose the
checkpointing ability to TSet
s.persist
in interface StoringData<T>
persist
in class BatchTLinkImpl<T,T>