Package cascading.flow.planner.graph

Examples of cascading.flow.planner.graph.ElementGraph


      BaseFlowStep flowStep = (BaseFlowStep) iterator.next();

      flowStep.setOrdinal( ordinal );
      flowStep.setName( flowPlanner.makeFlowStepName( flowStep, size, ordinal ) );

      ElementGraph stepSubGraph = flowStep.getElementGraph();

      writePlan( ordinal, stepSubGraph, nodeSubGraphsMap.get( stepSubGraph ), pipelineSubGraphsMap );

      ordinal++;
      }
View Full Code Here


    stepSubGraph.writeDOT( stepGraphName );

    for( int i = 0; i < nodeSubGraphs.size(); i++ )
      {
      ElementGraph nodeGraph = nodeSubGraphs.get( i );
      String nodeGraphName = String.format( "%s/%04d-%04d-step-node-sub-graph.dot", rootPath, stepCount, i );

      nodeGraph.writeDOT( nodeGraphName );

      List<? extends ElementGraph> pipelineGraphs = pipelineSubGraphsMap.get( nodeGraph );

      if( pipelineGraphs == null )
        continue;

      for( int j = 0; j < pipelineGraphs.size(); j++ )
        {
        ElementGraph pipelineGraph = pipelineGraphs.get( j );

        String pipelineGraphName = String.format( "%s/%04d-%04d-%04d-step-node-pipeline-sub-graph.dot", rootPath, stepCount, i, j );

        pipelineGraph.writeDOT( pipelineGraphName );
        }

      }
    }
View Full Code Here

    public ProcessEdge( Process sourceProcess, FlowElement flowElement, Process sinkProcess )
      {
      this.flowElement = flowElement;

      ElementGraph sinkElementGraph = sinkProcess.getElementGraph();
      ElementGraph sourceElementGraph = sourceProcess.getElementGraph();

      this.incomingOrdinals = createOrdinals( sinkElementGraph.incomingEdgesOf( flowElement ) );
      this.outgoingOrdinals = createOrdinals( sourceElementGraph.outgoingEdgesOf( flowElement ) );

      if( sinkElementGraph instanceof AnnotatedGraph && ( (AnnotatedGraph) sinkElementGraph ).hasAnnotations() )
        this.sinkAnnotations = ( (AnnotatedGraph) sinkElementGraph ).getAnnotations().getKeysFor( flowElement );

      if( sourceElementGraph instanceof AnnotatedGraph && ( (AnnotatedGraph) sourceElementGraph ).hasAnnotations() )
View Full Code Here

    List<ElementGraph> subGraphs = getSubGraphs();

    for( int i = 0; i < subGraphs.size(); i++ )
      {
      ElementGraph subGraph = subGraphs.get( i );

      // want to write annotations with elements
      new ElementDirectedGraph( subGraph, annotatedSubGraphs.get( subGraph ) ).writeDOT( new File( path, makeFileName( count, i, "partition-result-sub-graph" ) ).toString() );

      if( contractedMatches.size() < i )
View Full Code Here

TOP

Related Classes of cascading.flow.planner.graph.ElementGraph

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.