提交 c3a00b92 authored 作者: thomasmueller's avatar thomasmueller

Javadocs / formatting

上级 750e2124
...@@ -1695,6 +1695,11 @@ public class Session extends SessionWithState { ...@@ -1695,6 +1695,11 @@ public class Session extends SessionWithState {
return false; return false;
} }
/**
* Mark that the given table needs to be analyzed on commit.
*
* @param table the table
*/
public void markTableForAnalyze(Table table) { public void markTableForAnalyze(Table table) {
if (tablesToAnalyze == null) { if (tablesToAnalyze == null) {
tablesToAnalyze = New.hashSet(); tablesToAnalyze = New.hashSet();
......
...@@ -74,6 +74,7 @@ public class IndexType { ...@@ -74,6 +74,7 @@ public class IndexType {
/** /**
* Create an affinity index. * Create an affinity index.
* *
* @return the index type
*/ */
public static IndexType createAffinity() { public static IndexType createAffinity() {
IndexType type = new IndexType(); IndexType type = new IndexType();
......
...@@ -52,9 +52,10 @@ public class LinkSchema { ...@@ -52,9 +52,10 @@ public class LinkSchema {
stat = conn.createStatement(); stat = conn.createStatement();
stat.execute("CREATE SCHEMA IF NOT EXISTS " + stat.execute("CREATE SCHEMA IF NOT EXISTS " +
StringUtils.quoteIdentifier(targetSchema)); StringUtils.quoteIdentifier(targetSchema));
//Workaround for PostgreSQL to avoid index names //Workaround for PostgreSQL to avoid index names
if (url.startsWith("jdbc:postgresql:")) { if (url.startsWith("jdbc:postgresql:")) {
rs = c2.getMetaData().getTables(null, sourceSchema, null, new String[]{"TABLE", "LINKED TABLE", "VIEW", "EXTERNAL"}); rs = c2.getMetaData().getTables(null, sourceSchema, null,
new String[] { "TABLE", "LINKED TABLE", "VIEW", "EXTERNAL" });
} else { } else {
rs = c2.getMetaData().getTables(null, sourceSchema, null, null); rs = c2.getMetaData().getTables(null, sourceSchema, null, null);
} }
......
...@@ -2018,7 +2018,8 @@ public class TestFunctions extends TestBase implements AggregateFunction { ...@@ -2018,7 +2018,8 @@ public class TestFunctions extends TestBase implements AggregateFunction {
Statement stat = conn.createStatement(); Statement stat = conn.createStatement();
final ResultSet rs = stat.executeQuery( final ResultSet rs = stat.executeQuery(
"select ROUND(-1.2), ROUND(-1.5), ROUND(-1.6), ROUND(2), ROUND(1.5), ROUND(1.8), ROUND(1.1) from dual"); "select ROUND(-1.2), ROUND(-1.5), ROUND(-1.6), " +
"ROUND(2), ROUND(1.5), ROUND(1.8), ROUND(1.1) from dual");
rs.next(); rs.next();
assertEquals(-1, rs.getInt(1)); assertEquals(-1, rs.getInt(1));
......
...@@ -1173,8 +1173,8 @@ public class TestTableEngines extends TestBase { ...@@ -1173,8 +1173,8 @@ public class TestTableEngines extends TestBase {
@Override @Override
public double getCost(Session session, int[] masks, public double getCost(Session session, int[] masks,
TableFilter[] filters, int filter, SortOrder sortOrder, TableFilter[] filters, int filter, SortOrder sortOrder,
HashSet<Column> allColumnsSet) { HashSet<Column> allColumnsSet) {
return 0; return 0;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论