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, setOutputSchemaaddChildToGraph, addChildToGraph, equals, getId, getInputs, getName, getParallelism, getStateType, getTSetEnv, hashCode, isMutable, rename, setMutable, setStateType, setTSetEnv, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitbuildgenerateID, getTBaseGraphpublic 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 BuildableTSetpublic SinkTSet<T> setName(java.lang.String n)
TBaseTBasepublic SinkTSet<T> addInput(java.lang.String key, StorableTBase<?> input)
AcceptingDataaddInput in interface AcceptingData<T>key - the key used to store the given TSetinput - a StorableTBase TSet to be added as an input