ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dsetrak...@apache.org
Subject incubator-ignite git commit: # sprint-3 - Updated examples.
Date Mon, 13 Apr 2015 03:24:42 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-sprint-3 da0f19330 -> e5742de5a


# 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-sprint-3
Commit: e5742de5a535b86942b385fef1af4c8c768658da
Parents: da0f193
Author: Dmitiry Setrakyan <dsetrakyan@gridgain.com>
Authored: Sun Apr 12 20:24:39 2015 -0700
Committer: Dmitiry Setrakyan <dsetrakyan@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);


Mime
View raw message