Package cascading.flow.planner.iso.expression

Examples of cascading.flow.planner.iso.expression.ExpressionGraph


  public BalanceSameSourceStreamedAccumulatedExpression()
    {
    super(
      new SyncPipeExpressionGraph(),

      new ExpressionGraph()
        .arc( SHARED_TAP, PathScopeExpression.NON_BLOCKING, SHARED_HASHJOIN_STREAMED )
        .arc( SHARED_TAP, PathScopeExpression.BLOCKING, SHARED_HASHJOIN_ACCUMULATED )
        .arc( SHARED_HASHJOIN_STREAMED, PathScopeExpression.NON_BLOCKING, SHARED_HASHJOIN_ACCUMULATED ),

      new ExpressionGraph()
        .arc(
          new FlowElementExpression( ElementCapture.Primary, Pipe.class ),
          PathScopeExpression.NON_BLOCKING,
          new FlowElementExpression( ElementCapture.Secondary, HashJoin.class )
        )
View Full Code Here


  public BalanceGroupNonBlockingHashJoinExpression()
    {
    super(
      new SyncPipeExpressionGraph(),

      new ExpressionGraph()
        .arc(
          new FlowElementExpression( Group.class ),
          PathScopeExpression.NON_BLOCKING,
          new FlowElementExpression( HashJoin.class )
        ),

      new ExpressionGraph()
        .arc(
          new FlowElementExpression( ElementCapture.Primary, Pipe.class ),
          PathScopeExpression.NON_BLOCKING,
          new FlowElementExpression( HashJoin.class )
        )
View Full Code Here

  public BalanceHashJoinSameSourceExpression()
    {
    super(
      new SyncPipeExpressionGraph(),

      new ExpressionGraph()
        .arcs( SHARED_TAP, SHARED_HASHJOIN )
        .arcs( SHARED_TAP, SHARED_HASHJOIN ),

      new ExpressionGraph()
        .arc(
          new FlowElementExpression( ElementCapture.Secondary, Pipe.class ),
          PathScopeExpression.BLOCKING,
          new FlowElementExpression( ElementCapture.Primary, HashJoin.class )
        )
View Full Code Here

    graph = new ContractedTransformer( new SyncPipeExpressionGraph() ).transform( graph ).getEndGraph();

    FlowElementExpression SHARED_TAP = new FlowElementExpression( Tap.class, TypeExpression.Topo.SplitOnly );
    FlowElementExpression SHARED_HASHJOIN = new FlowElementExpression( HashJoin.class );

    ExpressionGraph expressionGraph = new ExpressionGraph()
      .arcs( SHARED_TAP, SHARED_HASHJOIN )
      .arcs( SHARED_TAP, SHARED_HASHJOIN );

    GraphFinder graphFinder = new GraphFinder( expressionGraph );
View Full Code Here

    graph = new ContractedTransformer( new SyncPipeExpressionGraph() ).transform( graph ).getEndGraph();

    FlowElementExpression sharedTap = new FlowElementExpression( Tap.class, TypeExpression.Topo.SplitOnly );
    FlowElementExpression sharedHashJoin = new FlowElementExpression( HashJoin.class );

    ExpressionGraph expressionGraph = new ExpressionGraph()
      .arc( sharedTap, ScopeExpression.ALL, sharedHashJoin );

    GraphFinder graphFinder = new GraphFinder( expressionGraph );

    Match match = graphFinder.findFirstMatch( graph );
View Full Code Here

//    graph = new ContractedTransform( new SyncPipeExpressionGraph() ).transform( graph ).getEndGraph();
    graph = new ContractedTransformer( new NoGroupTapExpressionGraph() ).transform( graph ).getEndGraph();

    graph.writeDOT( getPlanPath() + "/contracted.dot" );

    ExpressionGraph expressionGraph = new ExpressionGraph()
      .arc(
        new FlowElementExpression( Tap.class ),
        ScopeExpression.ALL,
        new FlowElementExpression( ElementCapture.Primary, HashJoin.class )
      );
View Full Code Here

//    graph = new ContractedTransform( new SyncPipeExpressionGraph() ).transform( graph ).getEndGraph();
    graph = new ContractedTransformer( new NoGroupTapExpressionGraph() ).transform( graph ).getEndGraph();

    graph.writeDOT( getPlanPath() + "/contracted.dot" );

    ExpressionGraph expressionGraph = new ExpressionGraph( new FlowElementExpression( ElementCapture.Primary, Tap.class ) );

    GraphFinder graphFinder = new GraphFinder( expressionGraph );

    Match match = graphFinder.findAllMatches( graph );
View Full Code Here

  public TestHashJoinBlockingHashJoinExpression()
    {
    super(
      new SyncPipeExpressionGraph(),

      new ExpressionGraph()
        .arc(
          new FlowElementExpression( HashJoin.class ),
          PathScopeExpression.BLOCKING,
          new FlowElementExpression( HashJoin.class )
        ),

      new ExpressionGraph()
        .arc(
          new FlowElementExpression( ElementCapture.Primary, Pipe.class ),
          PathScopeExpression.BLOCKING,
          new FlowElementExpression( HashJoin.class )
        )
View Full Code Here

public class TestCheckpointExpression extends RuleExpression
  {
  public TestCheckpointExpression()
    {
    super(
      new ExpressionGraph()
        .arcs(
          new FlowElementExpression( ElementCapture.Primary, true, Checkpoint.class ),
          not( new FlowElementExpression( Tap.class ) )
        )
    );
View Full Code Here

  public TestHashJoinSameSourceExpression()
    {
    super(
      new SyncPipeExpressionGraph(),

      new ExpressionGraph()
        .arcs( SHARED_TAP, SHARED_HASHJOIN )
        .arcs( SHARED_TAP, SHARED_HASHJOIN ),

      new ExpressionGraph()
        .arc(
          new FlowElementExpression( ElementCapture.Primary, Pipe.class ),
          PathScopeExpression.BLOCKING,
          new FlowElementExpression( ElementCapture.Secondary, HashJoin.class )
        )
View Full Code Here

TOP

Related Classes of cascading.flow.planner.iso.expression.ExpressionGraph

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.