提交 2049f7bf authored 作者: Thomas Mueller's avatar Thomas Mueller

Formatting.

上级 f11667db
......@@ -603,7 +603,7 @@ public class Page {
keyCount++;
sharedFlags &= ~(SHARED_KEYS | SHARED_VALUES);
totalCount++;
addMemory(map.getKeyType().getMemory(key) +
addMemory(map.getKeyType().getMemory(key) +
map.getValueType().getMemory(value));
}
......@@ -642,7 +642,7 @@ public class Page {
sharedFlags &= ~(SHARED_KEYS | SHARED_CHILDREN | SHARED_COUNTS);
totalCount += childPage.totalCount;
addMemory(map.getKeyType().getMemory(key) +
addMemory(map.getKeyType().getMemory(key) +
DataUtils.PAGE_MEMORY_CHILD);
}
......@@ -943,7 +943,7 @@ public class Page {
}
return memory;
}
private void addMemory(int mem) {
memory += mem;
}
......
......@@ -206,7 +206,7 @@ public class StreamStore {
/**
* Generate a new key.
*
*
* @return the new key
*/
private long getAndIncrementNextKey() {
......
......@@ -118,13 +118,13 @@ public class TestMVTableEngine extends TestBase {
conn = getConnection(url);
stat = conn.createStatement();
stat.execute("call rand(1)");
stat.execute("create table coords as select rand()*50 x, " +
stat.execute("create table coordinates as select rand()*50 x, " +
"rand()*50 y from system_range(1, 5000)");
stat.execute("create table geoms(id identity, the_geom geometry)");
stat.execute("create spatial index on geoms(the_geom)");
stat.execute("insert into geoms(the_geom) select 'polygon(('||" +
stat.execute("create table test(id identity, data geometry)");
stat.execute("create spatial index on test(data)");
stat.execute("insert into test(data) select 'polygon(('||" +
"(1+x)||' '||(1+y)||', '||(2+x)||' '||(2+y)||', "+
"'||(3+x)||' '||(1+y)||', '||(1+x)||' '||(1+y)||'))' from coords;");
"'||(3+x)||' '||(1+y)||', '||(1+x)||' '||(1+y)||'))' from coordinates;");
conn.close();
}
......
......@@ -53,7 +53,7 @@ public class TestStreamStore extends TestBase {
testWithFullMap();
testLoop();
}
private void testExceptionDuringStore() throws IOException {
// test that if there is an IOException while storing
// the data, the entries in the map are "rolled back"
......
......@@ -53,7 +53,7 @@ public class TestUtils extends TestBase {
testGetNonPrimitiveClass();
testReflectionUtils();
}
private void testIOUtils() throws IOException {
for (int i = 0; i < 20; i++) {
byte[] data = new byte[i];
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论