@Test public void testCostAnalysis05() throws Exception { QueryOptimizer optimizer = new QueryOptimizer(raptorContext); String query = "Environment.applications[@label != \"srp-app\"].services[@name in (\"srp-app:Raptor-00001\")].runsOn"; QueryExecPlan plan = parseAndPlan(query); optimizer.optimize(plan); SearchAction action = (SearchAction) plan.getRootAction();; action.getSearchQuery().getMetadata().getName().equals("ServiceInstance"); }
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);  }