public class SourceTSet<T> extends BatchTSetImpl<T>
BaseTSet.StateType
Constructor and Description |
---|
SourceTSet() |
SourceTSet(BatchEnvironment tSetEnv,
SourceFunc<T> src,
int parallelism) |
SourceTSet(BatchEnvironment tSetEnv,
java.lang.String name,
SourceFunc<T> src,
int parallelism) |
Modifier and Type | Method and Description |
---|---|
SourceTSet<T> |
addInput(java.lang.String key,
StorableTBase<?> input)
Adds data to this TSet
|
INode |
getINode() |
SourceTSet<T> |
setName(java.lang.String name)
Sets the name
|
SourceTSet<T> |
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 SourceTSet()
public SourceTSet(BatchEnvironment tSetEnv, SourceFunc<T> src, int parallelism)
public SourceTSet(BatchEnvironment tSetEnv, java.lang.String name, SourceFunc<T> src, int parallelism)
public SourceTSet<T> addInput(java.lang.String key, StorableTBase<?> input)
BatchTSet
addInput
in interface AcceptingData<T>
addInput
in interface BatchTSet<T>
addInput
in class BatchTSetImpl<T>
key
- the key used to store the given TSetinput
- a @StorableTBase
TSet to be added as an inputpublic SourceTSet<T> setName(java.lang.String name)
TSet
public SourceTSet<T> 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<T>
withSchema
in class BatchTSetImpl<T>
schema
- data type as a MessageType
TSet
public INode getINode()