T - The type of the elements in the input SinkTransformation@Internal public class SinkTransformation<T> extends StreamTransformation<Object>
bufferTimeout, id, idCounter, name, outputType, typeUsed| Constructor and Description |
|---|
SinkTransformation(StreamTransformation<T> input,
String name,
StreamSink<T> operator,
int parallelism)
Creates a new
SinkTransformation from the given input StreamTransformation. |
| Modifier and Type | Method and Description |
|---|---|
StreamTransformation<T> |
getInput()
Returns the input
StreamTransformation of this SinkTransformation. |
StreamSink<T> |
getOperator()
Returns the
StreamSink that is the operator of this SinkTransformation. |
org.apache.flink.api.java.functions.KeySelector<T,?> |
getStateKeySelector()
Returns the
KeySelector that must be used for partitioning keyed state in this
Sink. |
org.apache.flink.api.common.typeinfo.TypeInformation<?> |
getStateKeyType() |
Collection<StreamTransformation<?>> |
getTransitivePredecessors()
Returns all transitive predecessor
StreamTransformations of this StreamTransformation. |
void |
setChainingStrategy(ChainingStrategy strategy)
Sets the chaining strategy of this
StreamTransformation. |
void |
setStateKeySelector(org.apache.flink.api.java.functions.KeySelector<T,?> stateKeySelector)
Sets the
KeySelector that must be used for partitioning keyed state of this Sink. |
void |
setStateKeyType(org.apache.flink.api.common.typeinfo.TypeInformation<?> stateKeyType) |
equals, getBufferTimeout, getId, getName, getNewNodeId, getOutputType, getParallelism, getSlotSharingGroup, getUid, hashCode, setBufferTimeout, setName, setOutputType, setParallelism, setSlotSharingGroup, setUid, toStringpublic SinkTransformation(StreamTransformation<T> input, String name, StreamSink<T> operator, int parallelism)
SinkTransformation from the given input StreamTransformation.input - The input StreamTransformationname - The name of the StreamTransformation, this will be shown in Visualizations and the Logoperator - The sink operatorparallelism - The parallelism of this SinkTransformationpublic StreamTransformation<T> getInput()
StreamTransformation of this SinkTransformation.public StreamSink<T> getOperator()
StreamSink that is the operator of this SinkTransformation.public void setStateKeySelector(org.apache.flink.api.java.functions.KeySelector<T,?> stateKeySelector)
KeySelector that must be used for partitioning keyed state of this Sink.stateKeySelector - The KeySelector to setpublic org.apache.flink.api.java.functions.KeySelector<T,?> getStateKeySelector()
KeySelector that must be used for partitioning keyed state in this
Sink.public void setStateKeyType(org.apache.flink.api.common.typeinfo.TypeInformation<?> stateKeyType)
public org.apache.flink.api.common.typeinfo.TypeInformation<?> getStateKeyType()
public Collection<StreamTransformation<?>> getTransitivePredecessors()
StreamTransformationStreamTransformations of this StreamTransformation. This
is, for example, used when determining whether a feedback edge of an iteration
actually has the iteration head as a predecessor.getTransitivePredecessors in class StreamTransformation<Object>public final void setChainingStrategy(ChainingStrategy strategy)
StreamTransformationStreamTransformation.setChainingStrategy in class StreamTransformation<Object>Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.