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

Remove LocalResult.setRandomAccess()

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