T
- The type of the elements that result from this PartitionTransformation
@Internal public class PartitionTransformation<T> extends Transformation<T>
This does not create a physical operation, it only affects how upstream operations are connected to downstream operations.
bufferTimeout, DEFAULT_MANAGED_MEMORY_WEIGHT, id, idCounter, name, outputType, typeUsed, UPPER_BOUND_MAX_PARALLELISM
Constructor and Description |
---|
PartitionTransformation(Transformation<T> input,
StreamPartitioner<T> partitioner)
Creates a new
PartitionTransformation from the given input and StreamPartitioner . |
PartitionTransformation(Transformation<T> input,
StreamPartitioner<T> partitioner,
ShuffleMode shuffleMode)
Creates a new
PartitionTransformation from the given input and StreamPartitioner . |
Modifier and Type | Method and Description |
---|---|
Transformation<T> |
getInput()
Returns the input
Transformation of this SinkTransformation . |
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 . |
Collection<Transformation<?>> |
getTransitivePredecessors()
Returns all transitive predecessor
Transformation s of this Transformation . |
equals, getBufferTimeout, getCoLocationGroupKey, getId, getManagedMemoryWeight, getMaxParallelism, getMinResources, getName, getNewNodeId, getOutputType, getParallelism, getPreferredResources, getSlotSharingGroup, getUid, getUserProvidedNodeHash, hashCode, setBufferTimeout, setCoLocationGroupKey, setManagedMemoryWeight, setMaxParallelism, setName, setOutputType, setParallelism, setResources, setSlotSharingGroup, setUid, setUidHash, toString
public PartitionTransformation(Transformation<T> input, StreamPartitioner<T> partitioner)
PartitionTransformation
from the given input and StreamPartitioner
.input
- The input Transformation
partitioner
- The StreamPartitioner
public PartitionTransformation(Transformation<T> input, StreamPartitioner<T> partitioner, ShuffleMode shuffleMode)
PartitionTransformation
from the given input and StreamPartitioner
.input
- The input Transformation
partitioner
- The StreamPartitioner
shuffleMode
- The ShuffleMode
public Transformation<T> getInput()
Transformation
of this SinkTransformation
.public StreamPartitioner<T> getPartitioner()
StreamPartitioner
that must be used for partitioning the elements of the
input Transformation
.public ShuffleMode getShuffleMode()
ShuffleMode
of this PartitionTransformation
.public Collection<Transformation<?>> getTransitivePredecessors()
Transformation
Transformation
s of this Transformation
.
This is, for example, used when determining whether a feedback edge of an iteration actually
has the iteration head as a predecessor.getTransitivePredecessors
in class Transformation<T>
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.