Class EdgeManagerBuildUtil

java.lang.Object
org.apache.flink.runtime.executiongraph.EdgeManagerBuildUtil

public class EdgeManagerBuildUtil extends Object
Utilities for building EdgeManager.
  • 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 - the DistributionPattern of the connecting edge.