public class RowSinkTSet extends BaseTSetWithSchema<Row> implements AcceptingData<Row>
BaseTSet.StateType
Constructor and Description |
---|
RowSinkTSet(BatchEnvironment tSetEnv,
SinkFunc<Row> sinkFn,
int parallelism,
Schema inputSchema)
Creates SinkTSet with the given parameters
|
RowSinkTSet(BatchEnvironment tSetEnv,
SinkFunc<Row> s,
Schema inputSchema)
Creates SinkTSet with the given parameters, the parallelism of the TSet is taken as 1
|
Modifier and Type | Method and Description |
---|---|
RowSinkTSet |
addInput(java.lang.String key,
StorableTBase<?> input)
Allows users to pass in other TSets as inputs for a TSet
|
INode |
getINode() |
TBase |
setName(java.lang.String name)
Sets the name for the
TBase |
RowSinkTSet |
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 RowSinkTSet(BatchEnvironment tSetEnv, SinkFunc<Row> s, Schema inputSchema)
tSetEnv
- The TSetEnv used for executions
- The Sink function to be usedpublic RowSinkTSet(BatchEnvironment tSetEnv, SinkFunc<Row> sinkFn, int parallelism, Schema inputSchema)
tSetEnv
- The TSetEnv used for executionsinkFn
- The Sink function to be usedparallelism
- the parallelism of the sinkpublic RowSinkTSet addInput(java.lang.String key, StorableTBase<?> input)
AcceptingData
addInput
in interface AcceptingData<Row>
key
- the key used to store the given TSetinput
- a StorableTBase
TSet to be added as an inputpublic INode getINode()
getINode
in interface BuildableTSet
public TBase setName(java.lang.String name)
TBase
TBase
public RowSinkTSet withSchema(Schema schema)