Examples of ExpressionGraph


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

  public TestGroupGroupExpression()
    {
    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

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

  public NoHashJoinAssert()
    {
    super(
      PreBalanceAssembly,

      new RuleExpression( new ExpressionGraph()
        .arcs(
          new FlowElementExpression( ElementCapture.Primary, HashJoin.class )
        ) ),

      "HashJoins not supported by this rule registry, found {Primary}"
View Full Code Here

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

  public BalanceGroupSplitSpliceExpression()
    {
    super(
      new NoSpliceTapExpressionGraph(),

      new ExpressionGraph()
        .arcs(
          GROUP,
          SPLICE )
        .arcs(
          GROUP,
          SPLICE ),

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

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

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

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

    {
    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, new FlowElementExpression( HashJoin.class ) )
        .arcs( SHARED_GROUP, new FlowElementExpression( HashJoin.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

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

public class AdjacentTempToTapExpression extends RuleExpression
  {
  public AdjacentTempToTapExpression()
    {
    super(
      new ExpressionGraph()
        .arc(
          new FlowElementExpression( ElementCapture.Primary, TempHfs.class ),
          new EquivalentTapsScopeExpression(),
          new FlowElementExpression( ElementCapture.Secondary, Hfs.class )
        )
View Full Code Here

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

    {
    if( elementGraph.containsVertex( Extent.head ) )
      return narrowSet( type, Graphs.successorListOf( elementGraph, Extent.head ) );

    SubGraphIterator iterator = new ExpressionSubGraphIterator(
      new ExpressionGraph( SearchOrder.Topological, new FlowElementExpression( ElementCapture.Primary, type, TypeExpression.Topo.Head ) ),
      elementGraph
    );

    return narrowSet( type, getAllVertices( iterator ) );
    }
View Full Code Here

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

    {
    if( elementGraph.containsVertex( Extent.tail ) )
      return narrowSet( type, Graphs.predecessorListOf( elementGraph, Extent.tail ) );

    SubGraphIterator iterator = new ExpressionSubGraphIterator(
      new ExpressionGraph( SearchOrder.ReverseTopological, new FlowElementExpression( ElementCapture.Primary, type, TypeExpression.Topo.Tail ) ),
      elementGraph
    );

    return narrowSet( type, getAllVertices( iterator ) );
    }
View Full Code Here

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

    }

  public static Set<Group> findAllGroups( ElementGraph elementGraph )
    {
    SubGraphIterator iterator = new ExpressionSubGraphIterator(
      new ExpressionGraph( SearchOrder.Topological, new FlowElementExpression( ElementCapture.Primary, Group.class ) ),
      elementGraph
    );

    return narrowSet( Group.class, getAllVertices( iterator ) );
    }
View Full Code Here

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

    }

  public static Set<HashJoin> findAllHashJoins( ElementGraph elementGraph )
    {
    SubGraphIterator iterator = new ExpressionSubGraphIterator(
      new ExpressionGraph( SearchOrder.Topological, new FlowElementExpression( ElementCapture.Primary, HashJoin.class ) ),
      elementGraph
    );

    return narrowSet( HashJoin.class, getAllVertices( iterator ) );
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.