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.
-
Field Summary
Fields inherited from class org.apache.flink.api.dag.Transformation
bufferTimeout, description, id, name, outputType, typeUsed, UPPER_BOUND_MAX_PARALLELISM -
Constructor Summary
ConstructorsConstructorDescriptionPartitionTransformation(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
Modifier and TypeMethodDescriptionReturns theStreamExchangeModeof thisPartitionTransformation.List<org.apache.flink.api.dag.Transformation<?>>Returns theStreamPartitionerthat must be used for partitioning the elements of the inputTransformation.protected List<org.apache.flink.api.dag.Transformation<?>>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 Details
-
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 Details
-
getPartitioner
Returns theStreamPartitionerthat must be used for partitioning the elements of the inputTransformation. -
getExchangeMode
Returns theStreamExchangeModeof thisPartitionTransformation. -
getTransitivePredecessorsInternal
- Specified by:
getTransitivePredecessorsInternalin classorg.apache.flink.api.dag.Transformation<T>
-
getInputs
- Specified by:
getInputsin classorg.apache.flink.api.dag.Transformation<T>
-