@Test public void testJoinAction() { String query = "ApplicationService.services.runsOn"; QueryExecPlan plan = getTranslator(raptorContext).translate(raptorParser.parse(query)); QueryOptimizer optimizer = new QueryOptimizer(raptorContext); optimizer.optimize(plan); Assert.assertTrue(plan.getActionCount() == 5); }
public void optimize(QueryExecPlan plan) { AbstractAction rootAction = plan.getRootAction(); optimizeAction(rootAction); checkFullTableScan(rootAction); }
QueryOptimizer { public void optimize(QueryExecPlan plan) { AbstractAction rootAction = plan.getRootAction(); optimizeAction(rootAction); checkFullTableScan(rootAction); } }
QueryOptimizer { public void optimize(QueryExecPlan plan) { AbstractAction rootAction = plan.getRootAction(); optimizeAction(rootAction); checkFullTableScan(rootAction); } QueryOptimizer(QueryContext context); }
QueryOptimizer { public void optimize(QueryExecPlan plan) { AbstractAction rootAction = plan.getRootAction(); optimizeAction(rootAction); checkFullTableScan(rootAction); } QueryOptimizer(QueryContext context); void optimize(QueryExecPlan plan); }
QueryOptimizer { public void optimize(QueryExecPlan plan) { AbstractAction rootAction = plan.getRootAction(); optimizeAction(rootAction); checkFullTableScan(rootAction); } QueryOptimizer(QueryContext context); void optimize(QueryExecPlan plan);  }