private boolean testPlan(TableFilter[] list) { Plan p = new Plan(list, list.length, condition); double costNow = p.calculateCost(session); if (cost < 0 || costNow < cost) { cost = costNow; bestPlan = p; return true; } return false; }
Plan part = new Plan(list, i + 1, condition); double costNow = part.calculateCost(session); if (costPart < 0 || costNow < costPart) {