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

Rename a method and fix a typo

上级 77bd2516
......@@ -121,7 +121,7 @@ public abstract class BaseIndex extends SchemaObjectBase implements Index {
}
@Override
public boolean isFindSlow() {
public boolean isFindUsingFullTableScan() {
return false;
}
......
......@@ -17,7 +17,7 @@ import org.h2.table.IndexColumn;
import org.h2.table.TableFilter;
/**
* An index for a function that returns a result set. Search is this index
* An index for a function that returns a result set. Search in this index
* performs scan over all rows and should be avoided.
*/
public class FunctionIndex extends BaseIndex {
......@@ -45,7 +45,7 @@ public class FunctionIndex extends BaseIndex {
}
@Override
public boolean isFindSlow() {
public boolean isFindUsingFullTableScan() {
return true;
}
......
......@@ -58,7 +58,7 @@ public interface Index extends SchemaObject {
* @return {@code true} if {@code find()} implementation performs scan over all
* index, {@code false} if {@code find()} performs the fast lookup
*/
boolean isFindSlow();
boolean isFindUsingFullTableScan();
/**
* Find a row or a list of rows and create a cursor to iterate over the
......
......@@ -89,7 +89,7 @@ public class IndexCursor implements Cursor {
alwaysFalse = true;
break;
}
if (index.isFindSlow()) {
if (index.isFindUsingFullTableScan()) {
continue;
}
Column column = condition.getColumn();
......
......@@ -73,8 +73,8 @@ public class MultiVersionIndex implements Index {
}
@Override
public boolean isFindSlow() {
return base.isFindSlow();
public boolean isFindUsingFullTableScan() {
return base.isFindUsingFullTableScan();
}
@Override
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论