public void acceptForStepFunction(Visitor<OptimizerNode> visitor) { this.singleRoot.accept(visitor); } }
@Override public void clearInterestingProperties() { super.clearInterestingProperties(); this.nextWorksetRootConnection.clearInterestingProperties(); this.solutionSetDeltaRootConnection.clearInterestingProperties(); this.nextWorkset.accept(InterestingPropertiesClearer.INSTANCE); this.solutionSetDelta.accept(InterestingPropertiesClearer.INSTANCE); }
@Override public void clearInterestingProperties() { super.clearInterestingProperties(); this.singleRoot.accept(InterestingPropertiesClearer.INSTANCE); this.rootConnection.clearInterestingProperties(); }
@Override public void accept(Visitor<OptimizerNode> visitor) { if (visitor.preVisit(this)) { if (this.input1 == null || this.input2 == null) { throw new CompilerException(); } getFirstPredecessorNode().accept(visitor); getSecondPredecessorNode().accept(visitor); for (DagConnection connection : getBroadcastConnections()) { connection.getSource().accept(visitor); } visitor.postVisit(this); } } }
@Override public void accept(Visitor<OptimizerNode> visitor) { if (visitor.preVisit(this)) { if (getPredecessorNode() != null) { getPredecessorNode().accept(visitor); } else { throw new CompilerException(); } for (DagConnection connection : getBroadcastConnections()) { connection.getSource().accept(visitor); } visitor.postVisit(this); } } }
@Override public void accept(Visitor<OptimizerNode> visitor) { if (visitor.preVisit(this)) { if (getPredecessorNode() != null) { getPredecessorNode().accept(visitor); } else { throw new CompilerException(); } visitor.postVisit(this); } } }
this.terminationCriterion.accept(new InterestingPropertyVisitor(estimator)); this.nextPartialSolution.accept(new InterestingPropertyVisitor(estimator)); this.nextPartialSolution.accept(InterestingPropertiesClearer.INSTANCE); this.nextPartialSolution.accept(new InterestingPropertyVisitor(estimator));
private static List<DataSinkNode> convertPlan(Plan p) { GraphCreatingVisitor dagCreator = new GraphCreatingVisitor(17, p.getExecutionConfig().getExecutionMode()); // create the DAG p.accept(dagCreator); List<DataSinkNode> sinks = dagCreator.getSinks(); // build a single root and run the branch tracking logic OptimizerNode rootNode; if (sinks.size() == 1) { rootNode = sinks.get(0); } else { Iterator<DataSinkNode> iter = sinks.iterator(); rootNode = iter.next(); while (iter.hasNext()) { rootNode = new SinkJoiner(rootNode, iter.next()); } } rootNode.accept(new IdAndEstimatesVisitor(null)); rootNode.accept(new BranchesVisitor()); return sinks; } }
@Override public void clearInterestingProperties() { super.clearInterestingProperties(); this.nextWorksetRootConnection.clearInterestingProperties(); this.solutionSetDeltaRootConnection.clearInterestingProperties(); this.nextWorkset.accept(InterestingPropertiesClearer.INSTANCE); this.solutionSetDelta.accept(InterestingPropertiesClearer.INSTANCE); }
@Override public void clearInterestingProperties() { super.clearInterestingProperties(); this.nextWorksetRootConnection.clearInterestingProperties(); this.solutionSetDeltaRootConnection.clearInterestingProperties(); this.nextWorkset.accept(InterestingPropertiesClearer.INSTANCE); this.solutionSetDelta.accept(InterestingPropertiesClearer.INSTANCE); }
@Override public void clearInterestingProperties() { super.clearInterestingProperties(); this.singleRoot.accept(InterestingPropertiesClearer.INSTANCE); this.rootConnection.clearInterestingProperties(); }
@Override public void clearInterestingProperties() { super.clearInterestingProperties(); this.singleRoot.accept(InterestingPropertiesClearer.INSTANCE); this.rootConnection.clearInterestingProperties(); }
@Override public void clearInterestingProperties() { super.clearInterestingProperties(); this.singleRoot.accept(InterestingPropertiesClearer.INSTANCE); this.rootConnection.clearInterestingProperties(); }
@Override public void clearInterestingProperties() { super.clearInterestingProperties(); this.singleRoot.accept(InterestingPropertiesClearer.INSTANCE); this.rootConnection.clearInterestingProperties(); }
@Override public void accept(Visitor<OptimizerNode> visitor) { if (visitor.preVisit(this)) { if (getPredecessorNode() != null) { getPredecessorNode().accept(visitor); } else { throw new CompilerException(); } visitor.postVisit(this); } } }
@Override public void accept(Visitor<OptimizerNode> visitor) { if (visitor.preVisit(this)) { if (getPredecessorNode() != null) { getPredecessorNode().accept(visitor); } else { throw new CompilerException(); } visitor.postVisit(this); } } }