public class SinkTSet<T> extends BaseTSetWithSchema<T> implements AcceptingData<T>
BaseTSet.StateType
Constructor and Description |
---|
SinkTSet(BatchEnvironment tSetEnv,
SinkFunc<T> sinkFn,
int parallelism,
Schema inputSchema)
Creates SinkTSet with the given parameters
|
SinkTSet(BatchEnvironment tSetEnv,
SinkFunc<T> s,
Schema inputSchema)
Creates SinkTSet with the given parameters, the parallelism of the TSet is taken as 1
|
Modifier and Type | Method and Description |
---|---|
SinkTSet<T> |
addInput(java.lang.String key,
StorableTBase<?> input)
Allows users to pass in other TSets as inputs for a TSet
|
ICompute |
getINode() |
SinkTSet<T> |
setName(java.lang.String n)
Sets the name for the
TBase |
SinkTSet<T> |
withSchema(Schema schema) |
getInputSchema, getOutputSchema, setOutputSchema
addChildToGraph, addChildToGraph, equals, getId, getInputs, getName, getParallelism, getStateType, getTSetEnv, hashCode, isMutable, rename, setMutable, setStateType, setTSetEnv, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
build
generateID, getTBaseGraph
public SinkTSet(BatchEnvironment tSetEnv, SinkFunc<T> s, Schema inputSchema)
tSetEnv
- The TSetEnv used for executions
- The Sink function to be usedpublic SinkTSet(BatchEnvironment tSetEnv, SinkFunc<T> sinkFn, int parallelism, Schema inputSchema)
tSetEnv
- The TSetEnv used for executionsinkFn
- The Sink function to be usedparallelism
- the parallelism of the sinkpublic ICompute getINode()
getINode
in interface BuildableTSet
public SinkTSet<T> setName(java.lang.String n)
TBase
TBase
public SinkTSet<T> addInput(java.lang.String key, StorableTBase<?> input)
AcceptingData
addInput
in interface AcceptingData<T>
key
- the key used to store the given TSetinput
- a StorableTBase
TSet to be added as an input