Class EdgeManagerBuildUtil
- java.lang.Object
-
- org.apache.flink.runtime.executiongraph.EdgeManagerBuildUtil
-
public class EdgeManagerBuildUtil extends Object
Utilities for buildingEdgeManager
.
-
-
Constructor Summary
Constructors Constructor Description EdgeManagerBuildUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
computeMaxEdgesToTargetExecutionVertex(int targetParallelism, int sourceParallelism, DistributionPattern distributionPattern)
Given parallelisms of two job vertices, compute the max number of edges connected to a target execution vertex from the source execution vertices.
-
-
-
Method Detail
-
computeMaxEdgesToTargetExecutionVertex
public static int computeMaxEdgesToTargetExecutionVertex(int targetParallelism, int sourceParallelism, DistributionPattern distributionPattern)
Given parallelisms of two job vertices, compute the max number of edges connected to a target execution vertex from the source execution vertices. Note that edge is considered undirected here. It can be an edge connected from an upstream job vertex to a downstream job vertex, or in a reversed way.- Parameters:
targetParallelism
- parallelism of the target job vertex.sourceParallelism
- parallelism of the source job vertex.distributionPattern
- theDistributionPattern
of the connecting edge.
-
-