T - The type of the elements in the input LegacySinkTransformation@Internal public class LegacySinkTransformation<T> extends PhysicalTransformation<T>
| Constructor and Description |
|---|
LegacySinkTransformation(org.apache.flink.api.dag.Transformation<T> input,
String name,
StreamOperatorFactory<Object> operatorFactory,
int parallelism) |
LegacySinkTransformation(org.apache.flink.api.dag.Transformation<T> input,
String name,
StreamOperatorFactory<Object> operatorFactory,
int parallelism,
boolean parallelismConfigured) |
LegacySinkTransformation(org.apache.flink.api.dag.Transformation<T> input,
String name,
StreamSink<T> operator,
int parallelism,
boolean parallelismConfigured)
Creates a new
LegacySinkTransformation from the given input Transformation. |
| Modifier and Type | Method and Description |
|---|---|
List<org.apache.flink.api.dag.Transformation<?>> |
getInputs() |
StreamSink<T> |
getOperator() |
StreamOperatorFactory<Object> |
getOperatorFactory()
Returns the
StreamOperatorFactory of this LegacySinkTransformation. |
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() |
protected List<org.apache.flink.api.dag.Transformation<?>> |
getTransitivePredecessorsInternal() |
boolean |
isSupportsConcurrentExecutionAttempts() |
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) |
setSupportsConcurrentExecutionAttemptsdeclareManagedMemoryUseCaseAtOperatorScope, declareManagedMemoryUseCaseAtSlotScope, equals, getBufferTimeout, getCoLocationGroupKey, getDescription, getId, getManagedMemoryOperatorScopeUseCaseWeights, getManagedMemorySlotScopeUseCases, getMaxParallelism, getMinResources, getName, getNewNodeId, getOutputType, getParallelism, getPreferredResources, getSlotSharingGroup, getTransitivePredecessors, getUid, getUserProvidedNodeHash, hashCode, isParallelismConfigured, setBufferTimeout, setCoLocationGroupKey, setDescription, setMaxParallelism, setName, setOutputType, setParallelism, setParallelism, setResources, setSlotSharingGroup, setSlotSharingGroup, setUid, setUidHash, toString, updateManagedMemoryStateBackendUseCasepublic LegacySinkTransformation(org.apache.flink.api.dag.Transformation<T> input, String name, StreamSink<T> operator, int parallelism, boolean parallelismConfigured)
LegacySinkTransformation 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 LegacySinkTransformationparallelismConfigured - If true, the parallelism of the transformation is explicitly set
and should be respected. Otherwise the parallelism can be changed at runtime.public LegacySinkTransformation(org.apache.flink.api.dag.Transformation<T> input, String name, StreamOperatorFactory<Object> operatorFactory, int parallelism)
public LegacySinkTransformation(org.apache.flink.api.dag.Transformation<T> input, String name, StreamOperatorFactory<Object> operatorFactory, int parallelism, boolean parallelismConfigured)
@VisibleForTesting public StreamSink<T> getOperator()
public StreamOperatorFactory<Object> getOperatorFactory()
StreamOperatorFactory of this LegacySinkTransformation.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()
protected List<org.apache.flink.api.dag.Transformation<?>> getTransitivePredecessorsInternal()
getTransitivePredecessorsInternal in class org.apache.flink.api.dag.Transformation<T>public List<org.apache.flink.api.dag.Transformation<?>> getInputs()
getInputs in class org.apache.flink.api.dag.Transformation<T>public final void setChainingStrategy(ChainingStrategy strategy)
PhysicalTransformationTransformation.setChainingStrategy in class PhysicalTransformation<T>public boolean isSupportsConcurrentExecutionAttempts()
isSupportsConcurrentExecutionAttempts in class PhysicalTransformation<T>Copyright © 2014–2025 The Apache Software Foundation. All rights reserved.