ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [7/8] incubator-ignite git commit: # IGNITE-441 Review.
Date Thu, 12 Mar 2015 09:43:53 GMT
# IGNITE-441 Review.


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/d423fc7e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/d423fc7e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/d423fc7e

Branch: refs/heads/ignite-443
Commit: d423fc7e25f8f7848dee2a13c7446ea3eef3eea8
Parents: 5806e44
Author: AKuznetsov <akuznetsov@gridgain.com>
Authored: Thu Mar 12 15:44:25 2015 +0700
Committer: AKuznetsov <akuznetsov@gridgain.com>
Committed: Thu Mar 12 15:44:25 2015 +0700

----------------------------------------------------------------------
 .../ignite/examples/datagrid/CachePopularNumbersExample.java       | 2 +-
 .../ignite/scalar/examples/ScalarCachePopularNumbersExample.scala  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/d423fc7e/examples/src/main/java/org/apache/ignite/examples/datagrid/CachePopularNumbersExample.java
----------------------------------------------------------------------
diff --git a/examples/src/main/java/org/apache/ignite/examples/datagrid/CachePopularNumbersExample.java
b/examples/src/main/java/org/apache/ignite/examples/datagrid/CachePopularNumbersExample.java
index 646ee89..f09661d 100644
--- a/examples/src/main/java/org/apache/ignite/examples/datagrid/CachePopularNumbersExample.java
+++ b/examples/src/main/java/org/apache/ignite/examples/datagrid/CachePopularNumbersExample.java
@@ -119,7 +119,7 @@ public class CachePopularNumbersExample {
 
                 try {
                     List<List<?>> results = new ArrayList<>(cache.queryFields(
-                        sql("select _key, _val from Long order by _val desc limit ?").setArgs(cnt)).getAll());
+                        sql("select _key, _val from Long order by _val desc, _key limit ?").setArgs(cnt)).getAll());
 
                     for (List<?> res : results)
                         System.out.println(res.get(0) + "=" + res.get(1));

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/d423fc7e/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarCachePopularNumbersExample.scala
----------------------------------------------------------------------
diff --git a/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarCachePopularNumbersExample.scala
b/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarCachePopularNumbersExample.scala
index 80a3ce8..dbd7791 100644
--- a/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarCachePopularNumbersExample.scala
+++ b/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarCachePopularNumbersExample.scala
@@ -115,7 +115,7 @@ object ScalarCachePopularNumbersExample extends App {
      */
     def query(cnt: Int) {
         val results = cache$[Int, Long](CACHE_NAME).get
-            .sqlFields(clause = "select _key, _val from Long order by _val desc limit " +
cnt)
+            .sqlFields(clause = "select _key, _val from Long order by _val desc, _key limit
" + cnt)
             .getAll
 
         results.foreach(res => println(res.get(0) + "=" + res.get(1)))


Mime
View raw message