Class LegacySinkTransformation<T>
- java.lang.Object
-
- org.apache.flink.api.dag.Transformation<T>
-
- org.apache.flink.streaming.api.transformations.PhysicalTransformation<T>
-
- org.apache.flink.streaming.api.transformations.TransformationWithLineage<T>
-
- org.apache.flink.streaming.api.transformations.LegacySinkTransformation<T>
-
- Type Parameters:
T- The type of the elements in the inputLegacySinkTransformation
@Internal public class LegacySinkTransformation<T> extends TransformationWithLineage<T>
This Transformation represents a stream Sink.
-
-
Constructor Summary
Constructors Constructor 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 newLegacySinkTransformationfrom the given inputTransformation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<org.apache.flink.api.dag.Transformation<?>>getInputs()StreamSink<T>getOperator()StreamOperatorFactory<Object>getOperatorFactory()Returns theStreamOperatorFactoryof thisLegacySinkTransformation.org.apache.flink.api.java.functions.KeySelector<T,?>getStateKeySelector()Returns theKeySelectorthat 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()booleanisSupportsConcurrentExecutionAttempts()voidsetChainingStrategy(ChainingStrategy strategy)Sets the chaining strategy of thisTransformation.voidsetStateKeySelector(org.apache.flink.api.java.functions.KeySelector<T,?> stateKeySelector)Sets theKeySelectorthat must be used for partitioning keyed state of this Sink.voidsetStateKeyType(org.apache.flink.api.common.typeinfo.TypeInformation<?> stateKeyType)-
Methods inherited from class org.apache.flink.streaming.api.transformations.TransformationWithLineage
getLineageVertex, setLineageVertex
-
Methods inherited from class org.apache.flink.streaming.api.transformations.PhysicalTransformation
setSupportsConcurrentExecutionAttempts
-
Methods inherited from class org.apache.flink.api.dag.Transformation
declareManagedMemoryUseCaseAtOperatorScope, declareManagedMemoryUseCaseAtSlotScope, enableAsyncState, equals, getAttribute, getBufferTimeout, getCoLocationGroupKey, getDescription, getId, getManagedMemoryOperatorScopeUseCaseWeights, getManagedMemorySlotScopeUseCases, getMaxParallelism, getMinResources, getName, getNewNodeId, getOutputType, getParallelism, getPreferredResources, getSlotSharingGroup, getTransitivePredecessors, getUid, getUserProvidedNodeHash, hashCode, isParallelismConfigured, setAttribute, setBufferTimeout, setCoLocationGroupKey, setDescription, setMaxParallelism, setName, setOutputType, setParallelism, setParallelism, setResources, setSlotSharingGroup, setSlotSharingGroup, setUid, setUidHash, toString, updateManagedMemoryStateBackendUseCase
-
-
-
-
Constructor Detail
-
LegacySinkTransformation
public LegacySinkTransformation(org.apache.flink.api.dag.Transformation<T> input, String name, StreamSink<T> operator, int parallelism, boolean parallelismConfigured)
Creates a newLegacySinkTransformationfrom the given inputTransformation.- Parameters:
input- The inputTransformationname- The name of theTransformation, this will be shown in Visualizations and the Logoperator- The sink operatorparallelism- The parallelism of thisLegacySinkTransformationparallelismConfigured- If true, the parallelism of the transformation is explicitly set and should be respected. Otherwise the parallelism can be changed at runtime.
-
LegacySinkTransformation
public LegacySinkTransformation(org.apache.flink.api.dag.Transformation<T> input, String name, StreamOperatorFactory<Object> operatorFactory, int parallelism)
-
LegacySinkTransformation
public LegacySinkTransformation(org.apache.flink.api.dag.Transformation<T> input, String name, StreamOperatorFactory<Object> operatorFactory, int parallelism, boolean parallelismConfigured)
-
-
Method Detail
-
getOperator
@VisibleForTesting public StreamSink<T> getOperator()
-
getOperatorFactory
public StreamOperatorFactory<Object> getOperatorFactory()
Returns theStreamOperatorFactoryof thisLegacySinkTransformation.
-
setStateKeySelector
public void setStateKeySelector(org.apache.flink.api.java.functions.KeySelector<T,?> stateKeySelector)
Sets theKeySelectorthat must be used for partitioning keyed state of this Sink.- Parameters:
stateKeySelector- TheKeySelectorto set
-
getStateKeySelector
public org.apache.flink.api.java.functions.KeySelector<T,?> getStateKeySelector()
Returns theKeySelectorthat must be used for partitioning keyed state in this Sink.
-
setStateKeyType
public void setStateKeyType(org.apache.flink.api.common.typeinfo.TypeInformation<?> stateKeyType)
-
getStateKeyType
public org.apache.flink.api.common.typeinfo.TypeInformation<?> getStateKeyType()
-
getTransitivePredecessorsInternal
protected List<org.apache.flink.api.dag.Transformation<?>> getTransitivePredecessorsInternal()
- Specified by:
getTransitivePredecessorsInternalin classorg.apache.flink.api.dag.Transformation<T>
-
getInputs
public List<org.apache.flink.api.dag.Transformation<?>> getInputs()
- Specified by:
getInputsin classorg.apache.flink.api.dag.Transformation<T>
-
setChainingStrategy
public final void setChainingStrategy(ChainingStrategy strategy)
Description copied from class:PhysicalTransformationSets the chaining strategy of thisTransformation.- Specified by:
setChainingStrategyin classPhysicalTransformation<T>
-
isSupportsConcurrentExecutionAttempts
public boolean isSupportsConcurrentExecutionAttempts()
- Overrides:
isSupportsConcurrentExecutionAttemptsin classPhysicalTransformation<T>
-
-