public void setCandidateProperties(GlobalProperties gProps, LocalProperties lProps, Channel initialInput) { this.cachedPlans = Collections.<PlanNode>singletonList(new SolutionSetPlanNode(this, "SolutionSet ("+this.getOperator().getName()+")", gProps, lProps, initialInput)); }
"Cannot associate the node for a partial solutions with its containing iteration."); sspn.setContainingIterationNode((WorksetIterationPlanNode) iteration);
@Test public void testWorksetIterationNotDependingOnSolutionSet() { try { ExecutionEnvironment env = ExecutionEnvironment.getExecutionEnvironment(); DataSet<Tuple2<Long, Long>> input = env.generateSequence(1, 100).map(new Duplicator<Long>()); DeltaIteration<Tuple2<Long, Long>, Tuple2<Long, Long>> iteration = input.iterateDelta(input, 100, 1); DataSet<Tuple2<Long, Long>> iterEnd = iteration.getWorkset().map(new TestMapper<Tuple2<Long,Long>>()); iteration.closeWith(iterEnd, iterEnd) .output(new DiscardingOutputFormat<Tuple2<Long, Long>>()); Plan p = env.createProgramPlan(); OptimizedPlan op = compileNoStats(p); WorksetIterationPlanNode wipn = (WorksetIterationPlanNode) op.getDataSinks().iterator().next().getInput().getSource(); assertTrue(wipn.getSolutionSetPlanNode().getOutgoingChannels().isEmpty()); JobGraphGenerator jgg = new JobGraphGenerator(); jgg.compileJobGraph(op); } catch (Exception e) { e.printStackTrace(); fail(e.getMessage()); } }
ssn.getSolutionSetNode().getIterationNode().getOperator().getName() + "'";
public void setCandidateProperties(GlobalProperties gProps, LocalProperties lProps, Channel initialInput) { this.cachedPlans = Collections.<PlanNode>singletonList(new SolutionSetPlanNode(this, "SolutionSet ("+this.getOperator().getName()+")", gProps, lProps, initialInput)); }
"Cannot associate the node for a partial solutions with its containing iteration."); sspn.setContainingIterationNode((WorksetIterationPlanNode) iteration);
public void setCandidateProperties(GlobalProperties gProps, LocalProperties lProps, Channel initialInput) { this.cachedPlans = Collections.<PlanNode>singletonList(new SolutionSetPlanNode(this, "SolutionSet("+this.getOperator().getName()+")", gProps, lProps, initialInput)); }
"Cannot associate the node for a partial solutions with its containing iteration."); sspn.setContainingIterationNode((WorksetIterationPlanNode) iteration);
public void setCandidateProperties(GlobalProperties gProps, LocalProperties lProps, Channel initialInput) { this.cachedPlans = Collections.<PlanNode>singletonList(new SolutionSetPlanNode(this, "SolutionSet ("+this.getOperator().getName()+")", gProps, lProps, initialInput)); }
"Cannot associate the node for a partial solutions with its containing iteration."); sspn.setContainingIterationNode((WorksetIterationPlanNode) iteration);
public void setCandidateProperties(GlobalProperties gProps, LocalProperties lProps, Channel initialInput) { this.cachedPlans = Collections.<PlanNode>singletonList(new SolutionSetPlanNode(this, "SolutionSet ("+this.getOperator().getName()+")", gProps, lProps, initialInput)); }
"Cannot associate the node for a partial solutions with its containing iteration."); sspn.setContainingIterationNode((WorksetIterationPlanNode) iteration);