提交 c5d3a33e authored 作者: S.Vladykin's avatar S.Vladykin

minor: removed unused parameter

上级 728d18f2
...@@ -158,7 +158,7 @@ public class ViewIndex extends BaseIndex implements SpatialIndex { ...@@ -158,7 +158,7 @@ public class ViewIndex extends BaseIndex implements SpatialIndex {
return cachedCost.cost; return cachedCost.cost;
} }
} }
Query q = prepareSubQuery(querySQL, session, masks, filters, filter, sortOrder, true); Query q = prepareSubQuery(querySQL, session, masks, filters, filter, sortOrder);
if (masks != null) { if (masks != null) {
for (int idx = 0; idx < masks.length; idx++) { for (int idx = 0; idx < masks.length; idx++) {
int mask = masks[idx]; int mask = masks[idx];
...@@ -184,7 +184,7 @@ public class ViewIndex extends BaseIndex implements SpatialIndex { ...@@ -184,7 +184,7 @@ public class ViewIndex extends BaseIndex implements SpatialIndex {
} }
} }
String sql = q.getPlanSQL(); String sql = q.getPlanSQL();
q = prepareSubQuery(sql, session, masks, filters, filter, sortOrder, false); q = prepareSubQuery(sql, session, masks, filters, filter, sortOrder);
} }
double cost = q.getCost(); double cost = q.getCost();
cachedCost = new CostElement(); cachedCost = new CostElement();
...@@ -205,7 +205,7 @@ public class ViewIndex extends BaseIndex implements SpatialIndex { ...@@ -205,7 +205,7 @@ public class ViewIndex extends BaseIndex implements SpatialIndex {
} }
private static Query prepareSubQuery(String sql, Session session, int[] masks, private static Query prepareSubQuery(String sql, Session session, int[] masks,
TableFilter[] filters, int filter, SortOrder sortOrder, boolean preliminary) { TableFilter[] filters, int filter, SortOrder sortOrder) {
assert filters != null; assert filters != null;
Prepared p; Prepared p;
session.pushSubQueryInfo(masks, filters, filter, sortOrder); session.pushSubQueryInfo(masks, filters, filter, sortOrder);
...@@ -336,7 +336,7 @@ public class ViewIndex extends BaseIndex implements SpatialIndex { ...@@ -336,7 +336,7 @@ public class ViewIndex extends BaseIndex implements SpatialIndex {
private Query getQuery(Session session, int[] masks, private Query getQuery(Session session, int[] masks,
TableFilter[] filters, int filter, SortOrder sortOrder) { TableFilter[] filters, int filter, SortOrder sortOrder) {
Query q = prepareSubQuery(querySQL, session, masks, filters, filter, sortOrder, true); Query q = prepareSubQuery(querySQL, session, masks, filters, filter, sortOrder);
if (masks == null) { if (masks == null) {
return q; return q;
} }
...@@ -419,7 +419,7 @@ public class ViewIndex extends BaseIndex implements SpatialIndex { ...@@ -419,7 +419,7 @@ public class ViewIndex extends BaseIndex implements SpatialIndex {
} }
String sql = q.getPlanSQL(); String sql = q.getPlanSQL();
q = prepareSubQuery(sql, session, masks, filters, filter, sortOrder, false); q = prepareSubQuery(sql, session, masks, filters, filter, sortOrder);
return q; return q;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论