public class ComputeTSet<O,I> extends BatchTSetImpl<O>
BaseTSet.StateType
Constructor and Description |
---|
ComputeTSet() |
ComputeTSet(BatchEnvironment tSetEnv,
ComputeCollectorFunc<O,I> computeFn,
int parallelism,
Schema inputSchema) |
ComputeTSet(BatchEnvironment tSetEnv,
ComputeFunc<O,I> computeFn,
int parallelism,
Schema inputSchema) |
ComputeTSet(BatchEnvironment tSetEnv,
java.lang.String name,
ComputeCollectorFunc<O,I> computeFn,
int parallelism,
Schema inputSchema) |
ComputeTSet(BatchEnvironment tSetEnv,
java.lang.String name,
ComputeFunc<O,I> computeFn,
int parallelism,
Schema inputSchema) |
Modifier and Type | Method and Description |
---|---|
ComputeTSet<O,I> |
addInput(java.lang.String key,
StorableTBase<?> input)
Adds data to this TSet
|
TFunction<O,I> |
getComputeFunc()
Get the compute function associated with this TSet
|
ICompute<I> |
getINode() |
ComputeTSet<O,I> |
setName(java.lang.String name)
Sets the name
|
ComputeTSet<O,I> |
withSchema(Schema schema)
Sets the data type of the
TSet output. |
allGather, allReduce, cache, direct, gather, getTSetEnv, lazyCache, lazyPersist, mapToTuple, partition, partition, persist, pipe, reduce, replicate, union, union
getInputSchema, getOutputSchema, setOutputSchema
addChildToGraph, addChildToGraph, equals, getId, getInputs, getName, getParallelism, getStateType, hashCode, isMutable, rename, setMutable, setStateType, setTSetEnv, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
build
generateID, getTBaseGraph
public ComputeTSet()
public ComputeTSet(BatchEnvironment tSetEnv, ComputeFunc<O,I> computeFn, int parallelism, Schema inputSchema)
public ComputeTSet(BatchEnvironment tSetEnv, ComputeCollectorFunc<O,I> computeFn, int parallelism, Schema inputSchema)
public ComputeTSet(BatchEnvironment tSetEnv, java.lang.String name, ComputeFunc<O,I> computeFn, int parallelism, Schema inputSchema)
public ComputeTSet(BatchEnvironment tSetEnv, java.lang.String name, ComputeCollectorFunc<O,I> computeFn, int parallelism, Schema inputSchema)
public ComputeTSet<O,I> setName(java.lang.String name)
TSet
public ComputeTSet<O,I> addInput(java.lang.String key, StorableTBase<?> input)
BatchTSet
addInput
in interface AcceptingData<O>
addInput
in interface BatchTSet<O>
addInput
in class BatchTSetImpl<O>
key
- the key used to store the given TSetinput
- a @StorableTBase
TSet to be added as an inputpublic ComputeTSet<O,I> withSchema(Schema schema)
TSet
TSet
output. This will be used in the packers for efficient
SER-DE operations in the following TLink
swithSchema
in interface TSet<O>
withSchema
in class BatchTSetImpl<O>
schema
- data type as a MessageType
TSet