提交 edce6934 authored 作者: Thomas Mueller's avatar Thomas Mueller

fulltext search refactoring

上级 a35fdf7d
......@@ -21,7 +21,7 @@ import org.h2.util.ObjectUtils;
*/
class FullTextSettings {
private static HashMap settings = new HashMap();
private static final HashMap SETTINGS = new HashMap();
private HashSet ignoreList = new HashSet();
private HashMap words = new HashMap();
......@@ -84,10 +84,10 @@ class FullTextSettings {
*/
static FullTextSettings getInstance(Connection conn) throws SQLException {
String path = getIndexPath(conn);
FullTextSettings setting = (FullTextSettings) settings.get(path);
FullTextSettings setting = (FullTextSettings) SETTINGS.get(path);
if (setting == null) {
setting = new FullTextSettings();
settings.put(path, setting);
SETTINGS.put(path, setting);
}
return setting;
}
......
......@@ -19,12 +19,12 @@ class IndexInfo {
/**
* The schema name.
*/
String schemaName;
String schema;
/**
* The table name.
*/
String tableName;
String table;
/**
* The column indexes of the key columns.
......@@ -39,5 +39,5 @@ class IndexInfo {
/**
* The column names.
*/
String[] columnNames;
String[] columns;
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论