提交 c84e8e8a authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Inline TableFilter.setEvaluatable(TableFilter)

上级 e56155b3
...@@ -230,14 +230,14 @@ public class TableFilter implements ColumnResolver { ...@@ -230,14 +230,14 @@ public class TableFilter implements ColumnResolver {
} }
if (nestedJoin != null) { if (nestedJoin != null) {
setEvaluatable(nestedJoin); setEvaluatable(true);
item.setNestedJoinPlan(nestedJoin.getBestPlanItem(s, filters, filter, allColumnsSet)); item.setNestedJoinPlan(nestedJoin.getBestPlanItem(s, filters, filter, allColumnsSet));
// TODO optimizer: calculate cost of a join: should use separate // TODO optimizer: calculate cost of a join: should use separate
// expected row number and lookup cost // expected row number and lookup cost
item.cost += item.cost * item.getNestedJoinPlan().cost; item.cost += item.cost * item.getNestedJoinPlan().cost;
} }
if (join != null) { if (join != null) {
setEvaluatable(join); setEvaluatable(true);
do { do {
filter++; filter++;
} while (filters[filter] != join); } while (filters[filter] != join);
...@@ -249,10 +249,6 @@ public class TableFilter implements ColumnResolver { ...@@ -249,10 +249,6 @@ public class TableFilter implements ColumnResolver {
return item; return item;
} }
private void setEvaluatable(TableFilter join) {
setEvaluatable(true);
}
/** /**
* Set what plan item (index, cost, masks) to use. * Set what plan item (index, cost, masks) to use.
* *
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论