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

Remove LocalResult.setRandomAccess()

上级 6933c751
......@@ -219,9 +219,6 @@ public class SelectUnion extends Query {
right.setDistinctIfPossible();
result.setDistinct();
}
if (randomAccessResult) {
result.setRandomAccess();
}
switch (unionType) {
case UNION:
case EXCEPT:
......@@ -265,7 +262,6 @@ public class SelectUnion extends Query {
case INTERSECT: {
LocalResult temp = new LocalResult(session, expressionArray, columnCount);
temp.setDistinct();
temp.setRandomAccess();
while (l.next()) {
temp.addRow(convert(l.currentRow(), columnCount));
}
......
......@@ -43,7 +43,6 @@ public class LocalResult implements ResultInterface, ResultTarget {
private int limit = -1;
private ResultExternal external;
private boolean distinct;
private boolean randomAccess;
private boolean closed;
private boolean containsLobs;
......@@ -151,7 +150,6 @@ public class LocalResult implements ResultInterface, ResultTarget {
copy.sort = this.sort;
copy.distinctRows = this.distinctRows;
copy.distinct = distinct;
copy.randomAccess = randomAccess;
copy.currentRow = null;
copy.offset = 0;
copy.limit = -1;
......@@ -176,13 +174,6 @@ public class LocalResult implements ResultInterface, ResultTarget {
distinctRows = ValueHashMap.newInstance();
}
/**
* Random access is required (containsDistinct).
*/
public void setRandomAccess() {
this.randomAccess = true;
}
/**
* Remove the row from the result set if it exists.
*
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论