Class PartitionTransformation<T>
- java.lang.Object
-
- org.apache.flink.api.dag.Transformation<T>
-
- org.apache.flink.streaming.api.transformations.PartitionTransformation<T>
-
- Type Parameters:
T- The type of the elements that result from thisPartitionTransformation
@Internal public class PartitionTransformation<T> extends org.apache.flink.api.dag.Transformation<T>This transformation represents a change of partitioning of the input elements.This does not create a physical operation, it only affects how upstream operations are connected to downstream operations.
-
-
Constructor Summary
Constructors Constructor Description PartitionTransformation(org.apache.flink.api.dag.Transformation<T> input, StreamPartitioner<T> partitioner)Creates a newPartitionTransformationfrom the given input andStreamPartitioner.PartitionTransformation(org.apache.flink.api.dag.Transformation<T> input, StreamPartitioner<T> partitioner, StreamExchangeMode exchangeMode)Creates a newPartitionTransformationfrom the given input andStreamPartitioner.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StreamExchangeModegetExchangeMode()Returns theStreamExchangeModeof thisPartitionTransformation.List<org.apache.flink.api.dag.Transformation<?>>getInputs()StreamPartitioner<T>getPartitioner()Returns theStreamPartitionerthat must be used for partitioning the elements of the inputTransformation.protected List<org.apache.flink.api.dag.Transformation<?>>getTransitivePredecessorsInternal()-
Methods inherited from class org.apache.flink.api.dag.Transformation
declareManagedMemoryUseCaseAtOperatorScope, declareManagedMemoryUseCaseAtSlotScope, 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
-
PartitionTransformation
public PartitionTransformation(org.apache.flink.api.dag.Transformation<T> input, StreamPartitioner<T> partitioner)
Creates a newPartitionTransformationfrom the given input andStreamPartitioner.- Parameters:
input- The inputTransformationpartitioner- TheStreamPartitioner
-
PartitionTransformation
public PartitionTransformation(org.apache.flink.api.dag.Transformation<T> input, StreamPartitioner<T> partitioner, StreamExchangeMode exchangeMode)
Creates a newPartitionTransformationfrom the given input andStreamPartitioner.- Parameters:
input- The inputTransformationpartitioner- TheStreamPartitionerexchangeMode- TheStreamExchangeMode
-
-
Method Detail
-
getPartitioner
public StreamPartitioner<T> getPartitioner()
Returns theStreamPartitionerthat must be used for partitioning the elements of the inputTransformation.
-
getExchangeMode
public StreamExchangeMode getExchangeMode()
Returns theStreamExchangeModeof thisPartitionTransformation.
-
getTransitivePredecessorsInternal
protected List<org.apache.flink.api.dag.Transformation<?>> getTransitivePredecessorsInternal()
- Specified by:
getTransitivePredecessorsInternalin classorg.apache.flink.api.dag.Transformation<T>
-
-