129130131132133134135136137138139
bestPart = j; break; } list[i] = filters[j]; Plan part = new Plan(list, i+1, condition); double costNow = part.calculateCost(session); if (costPart < 0 || costNow < costPart) { costPart = costNow; bestPart = j; } }
172173174175176177178179180181182
} } 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; }