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

Formatting.

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