731732733734735736737
private static class TestExpressionVisitor extends LogicalExpressionVisitor { StringBuffer bf = new StringBuffer(); protected TestExpressionVisitor(OperatorPlan plan) throws FrontendException { super(plan, new DepthFirstWalker(plan)); }
672673674675676677678
private static class TestLogicalVisitor extends LogicalRelationalNodesVisitor { StringBuffer bf = new StringBuffer(); protected TestLogicalVisitor(OperatorPlan plan) throws FrontendException { super(plan, new DepthFirstWalker(plan)); }
716717718719720721722
492493494495496497498499500501502
plan.connect(fred, joe); plan.connect(joe, bob); SillyVisitor v = new SillyVisitor(plan, new DepthFirstWalker(plan)); v.visit(); String s = v.getVisitPattern();
522523524525526527528529530531532
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();
552553554555556557558559560561562
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();
177178179180181182183184
private static class SillyExpressionVisitor extends LogicalExpressionVisitor { StringBuffer buf; protected SillyExpressionVisitor(OperatorPlan p, StringBuffer b) throws FrontendException { super(p, new DepthFirstWalker(p)); buf = b; }
206207208209210211212
private static class SillyAllExpressionVisitor extends AllExpressionVisitor { StringBuffer buf = new StringBuffer(); public SillyAllExpressionVisitor(OperatorPlan plan) throws FrontendException { super(plan, new DepthFirstWalker(plan)); }
146147148149150151152
private static class SillySameVisitor extends AllSameRalationalNodesVisitor { StringBuffer buf = new StringBuffer(); SillySameVisitor(OperatorPlan plan) throws FrontendException { super(plan, new DepthFirstWalker(plan)); }