T - The type of the elements in the input SinkTransformation@Internal public class SinkTransformation<T> extends PhysicalTransformation<Object>
| Constructor and Description |
|---|
SinkTransformation(org.apache.flink.api.dag.Transformation<T> input,
String name,
StreamOperatorFactory<Object> operatorFactory,
int parallelism) |
SinkTransformation(org.apache.flink.api.dag.Transformation<T> input,
String name,
StreamSink<T> operator,
int parallelism)
Creates a new
SinkTransformation from the given input Transformation. |
| Modifier and Type | Method and Description |
|---|---|
org.apache.flink.api.dag.Transformation<T> |
getInput()
Returns the input
Transformation of this SinkTransformation. |
StreamSink<T> |
getOperator() |
StreamOperatorFactory<Object> |
getOperatorFactory()
Returns the
StreamOperatorFactory 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<org.apache.flink.api.dag.Transformation<?>> |
getTransitivePredecessors() |
void |
setChainingStrategy(ChainingStrategy strategy)
Sets the chaining strategy of this
Transformation. |
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, getCoLocationGroupKey, getId, getManagedMemoryWeight, getMaxParallelism, getMinResources, getName, getNewNodeId, getOutputType, getParallelism, getPreferredResources, getSlotSharingGroup, getUid, getUserProvidedNodeHash, hashCode, setBufferTimeout, setCoLocationGroupKey, setManagedMemoryWeight, setMaxParallelism, setName, setOutputType, setParallelism, setResources, setSlotSharingGroup, setUid, setUidHash, toStringpublic SinkTransformation(org.apache.flink.api.dag.Transformation<T> input, String name, StreamSink<T> operator, int parallelism)
SinkTransformation from the given input Transformation.input - The input Transformationname - The name of the Transformation, this will be shown in Visualizations and the Logoperator - The sink operatorparallelism - The parallelism of this SinkTransformationpublic SinkTransformation(org.apache.flink.api.dag.Transformation<T> input, String name, StreamOperatorFactory<Object> operatorFactory, int parallelism)
public org.apache.flink.api.dag.Transformation<T> getInput()
Transformation of this SinkTransformation.@VisibleForTesting public StreamSink<T> getOperator()
public StreamOperatorFactory<Object> getOperatorFactory()
StreamOperatorFactory 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<org.apache.flink.api.dag.Transformation<?>> getTransitivePredecessors()
getTransitivePredecessors in class org.apache.flink.api.dag.Transformation<Object>public final void setChainingStrategy(ChainingStrategy strategy)
PhysicalTransformationTransformation.setChainingStrategy in class PhysicalTransformation<Object>Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.