提交 9b31a87b 编写于 作者: M Márton Balassi 提交者: Stephan Ewen

[streaming] minor refactor

上级 9a5801ca
...@@ -249,7 +249,7 @@ public class StreamRecordTest { ...@@ -249,7 +249,7 @@ public class StreamRecordTest {
t2 = System.nanoTime() - t; t2 = System.nanoTime() - t;
System.out.println("getFieldFast:\t" + t2 + " ns"); System.out.println("getFieldFast:\t" + t2 + " ns");
StreamRecord record25 = new StreamRecord( StreamRecord record20 = new StreamRecord(
new Tuple20<Integer, Long, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String>( new Tuple20<Integer, Long, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String>(
0, 42L, "Stratosphere", "Streaming", "Stratosphere", 0, 42L, "Stratosphere", "Streaming", "Stratosphere",
"Stratosphere", "Streaming", "Stratosphere", "Stratosphere", "Streaming", "Stratosphere",
...@@ -260,7 +260,7 @@ public class StreamRecordTest { ...@@ -260,7 +260,7 @@ public class StreamRecordTest {
t = System.nanoTime(); t = System.nanoTime();
for (int i = 0; i < ITERATION; i++) { for (int i = 0; i < ITERATION; i++) {
record25.getField(0, i % 20); record20.getField(0, i % 20);
} }
t2 = System.nanoTime() - t; t2 = System.nanoTime() - t;
System.out.println("Tuple20"); System.out.println("Tuple20");
...@@ -268,7 +268,7 @@ public class StreamRecordTest { ...@@ -268,7 +268,7 @@ public class StreamRecordTest {
t = System.nanoTime(); t = System.nanoTime();
for (int i = 0; i < ITERATION; i++) { for (int i = 0; i < ITERATION; i++) {
record25.getFieldFast(0, i % 20); record20.getFieldFast(0, i % 20);
} }
t2 = System.nanoTime() - t; t2 = System.nanoTime() - t;
System.out.println("getFieldFast:\t" + t2 + " ns"); System.out.println("getFieldFast:\t" + t2 + " ns");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册