Class EdgeManagerBuildUtil
java.lang.Object
org.apache.flink.runtime.executiongraph.EdgeManagerBuildUtil
Utilities for building
EdgeManager.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intcomputeMaxEdgesToTargetExecutionVertex(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.
-
Constructor Details
-
EdgeManagerBuildUtil
public EdgeManagerBuildUtil()
-
-
Method Details
-
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- theDistributionPatternof the connecting edge.
-