Package cascading.flow.planner.iso.expression

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


  public BalanceHashJoinBlockingHashJoinExpression()
    {
    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 BalanceGroupBlockingHashJoinExpression()
    {
    super(
      new SyncPipeExpressionGraph(),

      new ExpressionGraph()
        .arc(
          new FlowElementExpression( Group.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 BalanceCheckpointWithTapExpression extends RuleExpression
  {
  public BalanceCheckpointWithTapExpression()
    {
    super(
      new ExpressionGraph()
        .arcs(
          new FlowElementExpression( ElementCapture.Primary, true, Checkpoint.class ),
          not( new FlowElementExpression( Tap.class ) )
        )
    );
View Full Code Here

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

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

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

  public BalanceGroupSplitMergeGroupExpression()
    {
    super(
      new SplicePipeExpressionGraph(),

      new ExpressionGraph()
        .arcs(
          GROUP,
          MERGE )
        .arcs(
          GROUP,
          MERGE )
        .arcs(
          MERGE,
          new FlowElementExpression( Group.class ) ),

      new ExpressionGraph()
        .arcs(
          new FlowElementExpression( ElementCapture.Primary, Pipe.class ),
          new FlowElementExpression( Group.class )
        )
    );
View Full Code Here

  public BalanceGroupMergeGroupExpression()
    {
    super(
      new SplicePipeExpressionGraph(),

      new ExpressionGraph()
        .arcs(
          new FlowElementExpression( Group.class ),
          new FlowElementExpression( Merge.class ),
          new FlowElementExpression( Group.class ) ),

      new ExpressionGraph()
        .arc(
          new FlowElementExpression( ElementCapture.Primary, Pipe.class ),
          ScopeExpression.ANY,
          new FlowElementExpression( Merge.class )
        )
View Full Code Here

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

      new ExpressionGraph()
        .arcs( new FlowElementExpression( Group.class ), new FlowElementExpression( Group.class ) ),

      new ExpressionGraph()
        .arc(
          new FlowElementExpression( ElementCapture.Primary, Pipe.class ),
          ScopeExpression.ANY,
          new FlowElementExpression( Group.class )
        )
View Full Code Here

    {
    super(
      new SyncPipeExpressionGraph(),

      // in order to capture out degree in sub-graph, we need to capture at least two successors
      new ExpressionGraph()
        .arcs( SHARED_GROUP, or( new FlowElementExpression( HashJoin.class ), new FlowElementExpression( Group.class ), new FlowElementExpression( Tap.class ) ) )
        .arcs( SHARED_GROUP, or( new FlowElementExpression( HashJoin.class ), new FlowElementExpression( Group.class ), new FlowElementExpression( Tap.class ) ) ),

      // sub-graph to match has out degree captured above
      new ExpressionGraph()
        .arcs(
          new FlowElementExpression( ElementCapture.Primary, Pipe.class, TypeExpression.Topo.SplitOnly )
        )
    );
    }
View Full Code Here

  public BalanceNonSafeSplitExpression()
    {
    super(
      new NonSafeAndSplitAndSyncPipeExpressionGraph(),

      new ExpressionGraph()
        .arcs(
          new FlowElementExpression( Tap.class ),
          new NonSafeOperationExpression( TypeExpression.Topo.SplitOnly )
        ),

      new ExpressionGraph()
        .arcs(
          new FlowElementExpression( ElementCapture.Primary, Pipe.class, TypeExpression.Topo.Tail )
        )
    );
    }
View Full Code Here

  public BalanceNonSafePipeSplitExpression()
    {
    super(
      new NonSafeAndSplitAndSyncPipeExpressionGraph(),

      new ExpressionGraph()
        .arcs(
          new FlowElementExpression( Tap.class ),
          new NonSafeOperationExpression(),
          new FlowElementExpression( Pipe.class, TypeExpression.Topo.SplitOnly )
        ),

      new ExpressionGraph()
        .arcs(
          new FlowElementExpression( ElementCapture.Primary, Pipe.class, TypeExpression.Topo.Tail )
        )
    );
    }
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.