483484485486487488489490491492493
plan.connect(fred, joe); plan.connect(joe, bob); SillyVisitor v = new SillyVisitor(plan, new DepthFirstWalker(plan)); v.visit(); String s = v.getVisitPattern();
513514515516517518519520521522523
plan.connect(fred, joe); plan.connect(joe, jill); plan.connect(joe, jane); SillyVisitor v = new SillyVisitor(plan, new DepthFirstWalker(plan)); v.visit(); String s = v.getVisitPattern();
543544545546547548549550551552553
plan.connect(joe, bob); plan.connect(bob, jill); plan.connect(bob, jane); SillyVisitor v = new SillyVisitor(plan, new DepthFirstWalker(plan)); v.visit(); String s = v.getVisitPattern();
663664665666667668669
private static class TestLogicalVisitor extends LogicalPlanVisitor { StringBuffer bf = new StringBuffer(); protected TestLogicalVisitor(OperatorPlan plan) { super(plan, new DepthFirstWalker(plan)); }
707708709710711712713
private static class TestExpressionVisitor extends LogicalExpressionVisitor { StringBuffer bf = new StringBuffer(); protected TestExpressionVisitor(OperatorPlan plan) { super(plan, new DepthFirstWalker(plan)); }
136137138139140141142
private static class SillySameVisitor extends AllSameVisitor { StringBuffer buf = new StringBuffer(); SillySameVisitor(OperatorPlan plan) { super(plan, new DepthFirstWalker(plan)); }
167168169170171172173174
private static class SillyExpressionVisitor extends LogicalExpressionVisitor { StringBuffer buf; protected SillyExpressionVisitor(OperatorPlan p, StringBuffer b) { super(p, new DepthFirstWalker(p)); buf = b; }
196197198199200201202
private static class SillyAllExpressionVisitor extends AllExpressionVisitor { StringBuffer buf = new StringBuffer(); public SillyAllExpressionVisitor(OperatorPlan plan) { super(plan, new DepthFirstWalker(plan)); }
5253545556575859
private static class ProjectionRewriter extends LogicalExpressionVisitor { private LogicalRelationalOperator currentOp; ProjectionRewriter(OperatorPlan p, LogicalRelationalOperator cop) { super(p, new DepthFirstWalker(p)); currentOp = cop; }
67686970717273
super(plan, new DependencyOrderWalker(plan)); } class ExprUidStamper extends LogicalExpressionVisitor { protected ExprUidStamper(OperatorPlan plan) { super(plan, new DepthFirstWalker(plan)); }