You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by sb...@apache.org on 2015/04/13 08:41:15 UTC
[44/50] incubator-ignite git commit: # sprint-3 - Updated examples.
# sprint-3 - Updated examples.
Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/e5742de5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/e5742de5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/e5742de5
Branch: refs/heads/ignite-709
Commit: e5742de5a535b86942b385fef1af4c8c768658da
Parents: da0f193
Author: Dmitiry Setrakyan <ds...@gridgain.com>
Authored: Sun Apr 12 20:24:39 2015 -0700
Committer: Dmitiry Setrakyan <ds...@gridgain.com>
Committed: Sun Apr 12 20:24:39 2015 -0700
----------------------------------------------------------------------
.../apache/ignite/examples/streaming/wordcount/QueryWords.java | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/e5742de5/examples/src/main/java/org/apache/ignite/examples/streaming/wordcount/QueryWords.java
----------------------------------------------------------------------
diff --git a/examples/src/main/java/org/apache/ignite/examples/streaming/wordcount/QueryWords.java b/examples/src/main/java/org/apache/ignite/examples/streaming/wordcount/QueryWords.java
index 8f4c6d4..3bd9d3d 100644
--- a/examples/src/main/java/org/apache/ignite/examples/streaming/wordcount/QueryWords.java
+++ b/examples/src/main/java/org/apache/ignite/examples/streaming/wordcount/QueryWords.java
@@ -66,12 +66,8 @@ public class QueryWords {
// Print average count.
List<?> row = stats.get(0);
- int size = stmCache.size();
-
if (row.get(0) != null)
-
- System.out.printf("Query results [total=%d, avg=%.2f, min=%d, max=%d]%n",
- size, row.get(0), row.get(1), row.get(2));
+ System.out.printf("Query results [avg=%.2f, min=%d, max=%d]%n", row.get(0), row.get(1), row.get(2));
// Print top 10 words.
ExamplesUtils.printQueryResults(top10);