ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [19/50] [abbrv] incubator-ignite git commit: # ignite-45 - demo fixes.
Date Tue, 24 Mar 2015 10:24:36 GMT
# ignite-45 - demo fixes.


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

Branch: refs/heads/ignite-release-test-no-mod
Commit: 59960c9643b56700a79cba2e3fbc005465f7fe9b
Parents: 4f3b128
Author: Dmitiry Setrakyan <dsetrakyan@gridgain.com>
Authored: Mon Mar 23 19:02:33 2015 -0700
Committer: Dmitiry Setrakyan <dsetrakyan@gridgain.com>
Committed: Mon Mar 23 19:02:33 2015 -0700

----------------------------------------------------------------------
 .../src/main/java/org/apache/ignite/schema/Demo.java            | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/59960c96/examples/schema-import/src/main/java/org/apache/ignite/schema/Demo.java
----------------------------------------------------------------------
diff --git a/examples/schema-import/src/main/java/org/apache/ignite/schema/Demo.java b/examples/schema-import/src/main/java/org/apache/ignite/schema/Demo.java
index 15db6c3..f446034 100644
--- a/examples/schema-import/src/main/java/org/apache/ignite/schema/Demo.java
+++ b/examples/schema-import/src/main/java/org/apache/ignite/schema/Demo.java
@@ -76,9 +76,8 @@ public class Demo {
         System.out.println();
         System.out.println(">>> Loading entries from database.");
 
-        // Demo for load cache with custom SQL.
-        cache.loadCache(null, "org.apache.ignite.schema.PersonKey",
-            "select * from PERSON where ID <= 3");
+        // Preload all person keys that are less than or equal to 3.
+        cache.loadCache(null, PersonKey.class.getName(), "select * from PERSON where ID <=
3");
 
         for (Cache.Entry<PersonKey, Person> person : cache)
             System.out.println(">>> Loaded Person: " + person);


Mime
View raw message