提交 366103df authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Remove unused import and add missing Override annotations

上级 ba358f48
...@@ -10,7 +10,6 @@ import java.sql.SQLException; ...@@ -10,7 +10,6 @@ import java.sql.SQLException;
import org.h2.api.Aggregate; import org.h2.api.Aggregate;
import org.h2.command.Parser; import org.h2.command.Parser;
import org.h2.command.dml.Select; import org.h2.command.dml.Select;
import org.h2.command.dml.SelectGroups;
import org.h2.engine.Session; import org.h2.engine.Session;
import org.h2.engine.UserAggregate; import org.h2.engine.UserAggregate;
import org.h2.expression.Expression; import org.h2.expression.Expression;
......
...@@ -84,6 +84,7 @@ public class LocalResultImpl implements LocalResult { ...@@ -84,6 +84,7 @@ public class LocalResultImpl implements LocalResult {
return false; return false;
} }
@Override
public void setMaxMemoryRows(int maxValue) { public void setMaxMemoryRows(int maxValue) {
this.maxMemoryRows = maxValue; this.maxMemoryRows = maxValue;
} }
...@@ -134,6 +135,7 @@ public class LocalResultImpl implements LocalResult { ...@@ -134,6 +135,7 @@ public class LocalResultImpl implements LocalResult {
* *
* @param sort the sort order * @param sort the sort order
*/ */
@Override
public void setSortOrder(SortOrder sort) { public void setSortOrder(SortOrder sort) {
this.sort = sort; this.sort = sort;
} }
...@@ -141,6 +143,7 @@ public class LocalResultImpl implements LocalResult { ...@@ -141,6 +143,7 @@ public class LocalResultImpl implements LocalResult {
/** /**
* Remove duplicate rows. * Remove duplicate rows.
*/ */
@Override
public void setDistinct() { public void setDistinct() {
assert distinctIndexes == null; assert distinctIndexes == null;
distinct = true; distinct = true;
...@@ -152,6 +155,7 @@ public class LocalResultImpl implements LocalResult { ...@@ -152,6 +155,7 @@ public class LocalResultImpl implements LocalResult {
* *
* @param distinctIndexes distinct indexes * @param distinctIndexes distinct indexes
*/ */
@Override
public void setDistinct(int[] distinctIndexes) { public void setDistinct(int[] distinctIndexes) {
assert !distinct; assert !distinct;
this.distinctIndexes = distinctIndexes; this.distinctIndexes = distinctIndexes;
...@@ -170,6 +174,7 @@ public class LocalResultImpl implements LocalResult { ...@@ -170,6 +174,7 @@ public class LocalResultImpl implements LocalResult {
* *
* @param values the row * @param values the row
*/ */
@Override
public void removeDistinct(Value[] values) { public void removeDistinct(Value[] values) {
if (!distinct) { if (!distinct) {
DbException.throwInternalError(); DbException.throwInternalError();
...@@ -329,6 +334,7 @@ public class LocalResultImpl implements LocalResult { ...@@ -329,6 +334,7 @@ public class LocalResultImpl implements LocalResult {
/** /**
* This method is called after all rows have been added. * This method is called after all rows have been added.
*/ */
@Override
public void done() { public void done() {
if (external != null) { if (external != null) {
addRowsToDisk(); addRowsToDisk();
...@@ -455,6 +461,7 @@ public class LocalResultImpl implements LocalResult { ...@@ -455,6 +461,7 @@ public class LocalResultImpl implements LocalResult {
* *
* @param limit the limit (-1 means no limit, 0 means no rows) * @param limit the limit (-1 means no limit, 0 means no rows)
*/ */
@Override
public void setLimit(int limit) { public void setLimit(int limit) {
this.limit = limit; this.limit = limit;
} }
...@@ -462,6 +469,7 @@ public class LocalResultImpl implements LocalResult { ...@@ -462,6 +469,7 @@ public class LocalResultImpl implements LocalResult {
/** /**
* @param fetchPercent whether limit expression specifies percentage of rows * @param fetchPercent whether limit expression specifies percentage of rows
*/ */
@Override
public void setFetchPercent(boolean fetchPercent) { public void setFetchPercent(boolean fetchPercent) {
this.fetchPercent = fetchPercent; this.fetchPercent = fetchPercent;
} }
...@@ -469,6 +477,7 @@ public class LocalResultImpl implements LocalResult { ...@@ -469,6 +477,7 @@ public class LocalResultImpl implements LocalResult {
/** /**
* @param withTies whether tied rows should be included in result too * @param withTies whether tied rows should be included in result too
*/ */
@Override
public void setWithTies(boolean withTies) { public void setWithTies(boolean withTies) {
this.withTies = withTies; this.withTies = withTies;
} }
...@@ -542,6 +551,7 @@ public class LocalResultImpl implements LocalResult { ...@@ -542,6 +551,7 @@ public class LocalResultImpl implements LocalResult {
* *
* @param offset the offset * @param offset the offset
*/ */
@Override
public void setOffset(int offset) { public void setOffset(int offset) {
this.offset = offset; this.offset = offset;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论