提交 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 { ...@@ -121,7 +121,7 @@ public abstract class BaseIndex extends SchemaObjectBase implements Index {
} }
@Override @Override
public boolean isFindSlow() { public boolean isFindUsingFullTableScan() {
return false; return false;
} }
......
...@@ -17,7 +17,7 @@ import org.h2.table.IndexColumn; ...@@ -17,7 +17,7 @@ import org.h2.table.IndexColumn;
import org.h2.table.TableFilter; 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. * performs scan over all rows and should be avoided.
*/ */
public class FunctionIndex extends BaseIndex { public class FunctionIndex extends BaseIndex {
...@@ -45,7 +45,7 @@ public class FunctionIndex extends BaseIndex { ...@@ -45,7 +45,7 @@ public class FunctionIndex extends BaseIndex {
} }
@Override @Override
public boolean isFindSlow() { public boolean isFindUsingFullTableScan() {
return true; return true;
} }
......
...@@ -58,7 +58,7 @@ public interface Index extends SchemaObject { ...@@ -58,7 +58,7 @@ public interface Index extends SchemaObject {
* @return {@code true} if {@code find()} implementation performs scan over all * @return {@code true} if {@code find()} implementation performs scan over all
* index, {@code false} if {@code find()} performs the fast lookup * 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 * 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 { ...@@ -89,7 +89,7 @@ public class IndexCursor implements Cursor {
alwaysFalse = true; alwaysFalse = true;
break; break;
} }
if (index.isFindSlow()) { if (index.isFindUsingFullTableScan()) {
continue; continue;
} }
Column column = condition.getColumn(); Column column = condition.getColumn();
......
...@@ -73,8 +73,8 @@ public class MultiVersionIndex implements Index { ...@@ -73,8 +73,8 @@ public class MultiVersionIndex implements Index {
} }
@Override @Override
public boolean isFindSlow() { public boolean isFindUsingFullTableScan() {
return base.isFindSlow(); return base.isFindUsingFullTableScan();
} }
@Override @Override
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论