Package cascading.flow

Examples of cascading.flow.FlowElement


    assertEquals( "not equal: steps.size()", 3, steps.size() );

    BaseFlowStep step = (BaseFlowStep) steps.get( 0 );

    Scope nextScope = step.getNextScope( step.getGroup() );
    FlowElement operator = step.getNextFlowElement( nextScope );

    assertTrue( "not an Every", operator instanceof Every );

    nextScope = step.getNextScope( operator );
    operator = step.getNextFlowElement( nextScope );
View Full Code Here


    assertEquals( "not equal: steps.size()", 3, steps.size() );

    BaseFlowStep step = (BaseFlowStep) steps.get( 0 );

    Scope nextScope = step.getNextScope( step.getGroup() );
    FlowElement operator = step.getNextFlowElement( nextScope );

    assertTrue( "not an Every", operator instanceof Every );

    nextScope = step.getNextScope( operator );
    operator = step.getNextFlowElement( nextScope );
View Full Code Here

    assertEquals( "not equal: steps.size()", testTempReplaced ? 2 : 3, steps.size() );

    BaseFlowStep step = (BaseFlowStep) steps.get( 0 );

    Scope nextScope = step.getNextScope( step.getGroup() );
    FlowElement operator = step.getNextFlowElement( nextScope );

    assertTrue( "not an Each", operator instanceof Each );

    nextScope = step.getNextScope( operator );
    operator = step.getNextFlowElement( nextScope );
View Full Code Here

  public SpliceGate( FlowProcess flowProcess, Splice splice )
    {
    this.splice = splice;

    FlowElement element = splice;

    while( element != null )
      {
      if( element.hasConfigDef() )
        flowProcess = new ElementFlowProcess( flowProcess, element.getConfigDef() );

      element = ( (Pipe) element ).getParent();
      }

    this.flowProcess = flowProcess;
View Full Code Here

  public BoundaryStage( FlowProcess flowProcess, Boundary boundary )
    {
    this.boundary = boundary;

    FlowElement element = boundary;

    while( element != null )
      {
      if( element.hasConfigDef() )
        flowProcess = new ElementFlowProcess( flowProcess, element.getConfigDef() );

      element = ( (Pipe) element ).getParent();
      }

    this.flowProcess = flowProcess;
View Full Code Here

        {
        Asserted asserted = rule.assertion( plannerContext, child );

        writeTrace( ruleResult, phase, (Rule) rule, parent, child, asserted );

        FlowElement primary = asserted.getFirstAnchor();

        if( primary == null )
          continue;

        throw new PlannerException( asserted.getFirstAnchor(), asserted.getMessage() );
View Full Code Here

  public ElementStage( FlowProcess flowProcess, FlowElement flowElement )
    {
    this.flowElement = flowElement;

    FlowElement element = flowElement;

    while( element != null )
      {
      if( element.hasConfigDef() )
        flowProcess = new ElementFlowProcess( flowProcess, element.getConfigDef() );

      if( element instanceof Pipe )
        element = ( (Pipe) element ).getParent();
      else
        element = null;
View Full Code Here

  private int findEdgeOrdinal( Duct lhsDuct, Duct rhsDuct )
    {
    if( !( rhsDuct instanceof GroupingSpliceGate ) )
      return 0;

    FlowElement lhsElement = ( (ElementDuct) lhsDuct ).getFlowElement();
    FlowElement rhsElement = ( (ElementDuct) rhsDuct ).getFlowElement();

    Set<Scope> allEdges = elementGraph.getAllEdges( lhsElement, rhsElement );

    if( allEdges.size() == 1 )
      return Util.getFirst( allEdges ).getOrdinal();
View Full Code Here

      {
      if( !( duct instanceof ElementDuct ) )
        continue;

      ElementDuct elementDuct = (ElementDuct) duct;
      FlowElement flowElement = elementDuct.getFlowElement();

      Set<String> branchNames = new TreeSet<String>();

      if( flowElement instanceof Pipe )
        branchNames.add( ( (Pipe) flowElement ).getName() );
View Full Code Here

      if( processedEdges.contains( processEdge ) )
        continue;

      FlowNode edgeTargetFlowNode = nodeGraph.getEdgeTarget( processEdge );

      FlowElement flowElement = processEdge.getFlowElement();
      List<FlowNode> sourceNodes = nodeGraph.getElementSourceProcesses( flowElement );

      EdgeProperty edgeProperty = createEdgeProperty( initializedConfig, processEdge );

      Vertex targetVertex = vertexMap.get( edgeTargetFlowNode );
View Full Code Here

TOP

Related Classes of cascading.flow.FlowElement

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.