T - The type of the elements that result from this PartitionTransformation@Internal
public class PartitionTransformation<T>
extends org.apache.flink.api.dag.Transformation<T>
This does not create a physical operation, it only affects how upstream operations are connected to downstream operations.
| Constructor and Description |
|---|
PartitionTransformation(org.apache.flink.api.dag.Transformation<T> input,
StreamPartitioner<T> partitioner)
Creates a new
PartitionTransformation from the given input and StreamPartitioner. |
PartitionTransformation(org.apache.flink.api.dag.Transformation<T> input,
StreamPartitioner<T> partitioner,
ShuffleMode shuffleMode)
Creates a new
PartitionTransformation from the given input and StreamPartitioner. |
| Modifier and Type | Method and Description |
|---|---|
List<org.apache.flink.api.dag.Transformation<?>> |
getInputs() |
StreamPartitioner<T> |
getPartitioner()
Returns the
StreamPartitioner that must be used for partitioning the elements of the
input Transformation. |
ShuffleMode |
getShuffleMode()
Returns the
ShuffleMode of this PartitionTransformation. |
List<org.apache.flink.api.dag.Transformation<?>> |
getTransitivePredecessors() |
declareManagedMemoryUseCaseAtOperatorScope, declareManagedMemoryUseCaseAtSlotScope, equals, getBufferTimeout, getCoLocationGroupKey, getId, getManagedMemoryOperatorScopeUseCaseWeights, getManagedMemorySlotScopeUseCases, getMaxParallelism, getMinResources, getName, getNewNodeId, getOutputType, getParallelism, getPreferredResources, getSlotSharingGroup, getUid, getUserProvidedNodeHash, hashCode, setBufferTimeout, setCoLocationGroupKey, setMaxParallelism, setName, setOutputType, setParallelism, setResources, setSlotSharingGroup, setUid, setUidHash, toString, updateManagedMemoryStateBackendUseCasepublic PartitionTransformation(org.apache.flink.api.dag.Transformation<T> input, StreamPartitioner<T> partitioner)
PartitionTransformation from the given input and StreamPartitioner.input - The input Transformationpartitioner - The StreamPartitionerpublic PartitionTransformation(org.apache.flink.api.dag.Transformation<T> input, StreamPartitioner<T> partitioner, ShuffleMode shuffleMode)
PartitionTransformation from the given input and StreamPartitioner.input - The input Transformationpartitioner - The StreamPartitionershuffleMode - The ShuffleModepublic StreamPartitioner<T> getPartitioner()
StreamPartitioner that must be used for partitioning the elements of the
input Transformation.public ShuffleMode getShuffleMode()
ShuffleMode of this PartitionTransformation.public List<org.apache.flink.api.dag.Transformation<?>> getTransitivePredecessors()
getTransitivePredecessors in class org.apache.flink.api.dag.Transformation<T>Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.