Examples of BulkPartialSolutionPlanNode


Examples of eu.stratosphere.compiler.plan.BulkPartialSolutionPlanNode

 
  public void setCandidateProperties(GlobalProperties gProps, LocalProperties lProps, Channel initialInput) {
    if (this.cachedPlans != null) {
      throw new IllegalStateException();
    } else {
      this.cachedPlans = Collections.<PlanNode>singletonList(new BulkPartialSolutionPlanNode(this, "BulkPartialSolution("+this.getPactContract().getName()+")", gProps, lProps, initialInput));
    }
  }
View Full Code Here

Examples of eu.stratosphere.compiler.plan.BulkPartialSolutionPlanNode

    //    before starting another enumeration
    this.nextPartialSolution.accept(PlanCacheCleaner.INSTANCE);
   
    // 2) Give the partial solution the properties of the current candidate for the initial partial solution
    this.partialSolution.setCandidateProperties(in.getGlobalProperties(), in.getLocalProperties(), in);
    final BulkPartialSolutionPlanNode pspn = this.partialSolution.getCurrentPartialSolutionPlanNode();
   
    // 3) Get the alternative plans
    List<PlanNode> candidates = this.nextPartialSolution.getAlternativePlans(estimator);
   
    // 4) Throw away all that are not compatible with the properties currently requested to the
View Full Code Here

Examples of eu.stratosphere.compiler.plan.BulkPartialSolutionPlanNode

      else if (visitable instanceof SourcePlanNode) {
        this.sources.add((SourcePlanNode) visitable);
      }
      else if (visitable instanceof BulkPartialSolutionPlanNode) {
        // tell the partial solution about the iteration node that contains it
        final BulkPartialSolutionPlanNode pspn = (BulkPartialSolutionPlanNode) visitable;
        final IterationPlanNode iteration = this.stackOfIterationNodes.peekLast();
       
        // sanity check!
        if (iteration == null || !(iteration instanceof BulkIterationPlanNode)) {
          throw new CompilerException("Bug: Error finalizing the plan. " +
              "Cannot associate the node for a partial solutions with its containing iteration.");
        }
        pspn.setContainingIterationNode((BulkIterationPlanNode) iteration);
      }
      else if (visitable instanceof WorksetPlanNode) {
        // tell the partial solution about the iteration node that contains it
        final WorksetPlanNode wspn = (WorksetPlanNode) visitable;
        final IterationPlanNode iteration = this.stackOfIterationNodes.peekLast();
View Full Code Here

Examples of eu.stratosphere.compiler.plan.BulkPartialSolutionPlanNode

      allInChannels = ((NAryUnionPlanNode) inputPlanNode).getListOfInputs().iterator();
    }
    else if (inputPlanNode instanceof BulkPartialSolutionPlanNode) {
      if (this.vertices.get(inputPlanNode) == null) {
        // merged iteration head
        final BulkPartialSolutionPlanNode pspn = (BulkPartialSolutionPlanNode) inputPlanNode;
        final BulkIterationPlanNode iterationNode = pspn.getContainingIterationNode();
       
        // check if the iteration's input is a union
        if (iterationNode.getInput().getSource() instanceof NAryUnionPlanNode) {
          allInChannels = ((NAryUnionPlanNode) iterationNode.getInput().getSource()).getInputs();
        } else {
View Full Code Here

Examples of eu.stratosphere.compiler.plan.BulkPartialSolutionPlanNode

    {
      // get the nodes current schema
      T schema;
      String name;
      if (node instanceof BulkPartialSolutionPlanNode) {
        BulkPartialSolutionPlanNode psn = (BulkPartialSolutionPlanNode) node;
        if (psn.postPassHelper == null) {
          schema = createEmptySchema();
          psn.postPassHelper = schema;
        } else {
          schema = (T) psn.postPassHelper;
        }
        name = "partial solution of bulk iteration '" +
          psn.getPartialSolutionNode().getIterationNode().getPactContract().getName() + "'";
      }
      else if (node instanceof SolutionSetPlanNode) {
        SolutionSetPlanNode ssn = (SolutionSetPlanNode) node;
        if (ssn.postPassHelper == null) {
          schema = createEmptySchema();
View Full Code Here

Examples of org.apache.flink.compiler.plan.BulkPartialSolutionPlanNode

 
  public void setCandidateProperties(GlobalProperties gProps, LocalProperties lProps, Channel initialInput) {
    if (this.cachedPlans != null) {
      throw new IllegalStateException();
    } else {
      this.cachedPlans = Collections.<PlanNode>singletonList(new BulkPartialSolutionPlanNode(this, "PartialSolution ("+this.getPactContract().getName()+")", gProps, lProps, initialInput));
    }
  }
View Full Code Here

Examples of org.apache.flink.compiler.plan.BulkPartialSolutionPlanNode

      allInChannels = ((NAryUnionPlanNode) inputPlanNode).getListOfInputs().iterator();
    }
    else if (inputPlanNode instanceof BulkPartialSolutionPlanNode) {
      if (this.vertices.get(inputPlanNode) == null) {
        // merged iteration head
        final BulkPartialSolutionPlanNode pspn = (BulkPartialSolutionPlanNode) inputPlanNode;
        final BulkIterationPlanNode iterationNode = pspn.getContainingIterationNode();
       
        // check if the iteration's input is a union
        if (iterationNode.getInput().getSource() instanceof NAryUnionPlanNode) {
          allInChannels = ((NAryUnionPlanNode) iterationNode.getInput().getSource()).getInputs().iterator();
        } else {
View Full Code Here

Examples of org.apache.flink.compiler.plan.BulkPartialSolutionPlanNode

      this.terminationCriterion.accept(PlanCacheCleaner.INSTANCE);
    }
   
    // 2) Give the partial solution the properties of the current candidate for the initial partial solution
    this.partialSolution.setCandidateProperties(in.getGlobalProperties(), in.getLocalProperties(), in);
    final BulkPartialSolutionPlanNode pspn = this.partialSolution.getCurrentPartialSolutionPlanNode();
   
    // 3) Get the alternative plans
    List<PlanNode> candidates = this.nextPartialSolution.getAlternativePlans(estimator);
   
    // 4) Make sure that the beginning of the step function does not assume properties that
View Full Code Here

Examples of org.apache.flink.compiler.plan.BulkPartialSolutionPlanNode

     
      // check that the partitioning is pushed out of the first loop
      Assert.assertEquals(ShipStrategyType.PARTITION_HASH, iterPlanNode.getInput().getShipStrategy());
      Assert.assertEquals(LocalStrategy.NONE, iterPlanNode.getInput().getLocalStrategy());
     
      BulkPartialSolutionPlanNode partSolPlanNode = iterPlanNode.getPartialSolutionPlanNode();
      Assert.assertEquals(ShipStrategyType.FORWARD, partSolPlanNode.getOutgoingChannels().get(0).getShipStrategy());
    }
    catch (Exception e) {
      e.printStackTrace();
      fail(e.getMessage());
    }
View Full Code Here

Examples of org.apache.flink.compiler.plan.BulkPartialSolutionPlanNode

    {
      // get the nodes current schema
      T schema;
      String name;
      if (node instanceof BulkPartialSolutionPlanNode) {
        BulkPartialSolutionPlanNode psn = (BulkPartialSolutionPlanNode) node;
        if (psn.postPassHelper == null) {
          schema = createEmptySchema();
          psn.postPassHelper = schema;
        } else {
          schema = (T) psn.postPassHelper;
        }
        name = "partial solution of bulk iteration '" +
          psn.getPartialSolutionNode().getIterationNode().getPactContract().getName() + "'";
      }
      else if (node instanceof SolutionSetPlanNode) {
        SolutionSetPlanNode ssn = (SolutionSetPlanNode) node;
        if (ssn.postPassHelper == null) {
          schema = createEmptySchema();
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.