ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [36/50] [abbrv] incubator-ignite git commit: # sprint-2 - example fix.
Date Wed, 25 Mar 2015 12:06:22 GMT
# sprint-2 - example fix.


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

Branch: refs/heads/ignite-565
Commit: ac9ffe8cde3e15a0dae458e7489b54237c73e561
Parents: d5487f5
Author: Dmitiry Setrakyan <dsetrakyan@gridgain.com>
Authored: Wed Mar 25 00:11:39 2015 -0700
Committer: Dmitiry Setrakyan <dsetrakyan@gridgain.com>
Committed: Wed Mar 25 00:11:39 2015 -0700

----------------------------------------------------------------------
 .../org/apache/ignite/examples/datagrid/CacheQueryExample.java | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ac9ffe8c/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheQueryExample.java
----------------------------------------------------------------------
diff --git a/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheQueryExample.java
b/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheQueryExample.java
index e667d93..f735728 100644
--- a/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheQueryExample.java
+++ b/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheQueryExample.java
@@ -73,16 +73,14 @@ public class CacheQueryExample {
             System.out.println();
             System.out.println(">>> Cache query example started.");
 
-            CacheConfiguration<?, ?> orgCacheCfg = new CacheConfiguration<>();
+            CacheConfiguration<?, ?> orgCacheCfg = new CacheConfiguration<>(ORG_CACHE);
 
             orgCacheCfg.setCacheMode(CacheMode.PARTITIONED); // Default.
-            orgCacheCfg.setName(ORG_CACHE);
             orgCacheCfg.setIndexedTypes(UUID.class, Organization.class);
 
-            CacheConfiguration<?, ?> personCacheCfg = new CacheConfiguration<>();
+            CacheConfiguration<?, ?> personCacheCfg = new CacheConfiguration<>(PERSON_CACHE);
 
             personCacheCfg.setCacheMode(CacheMode.PARTITIONED); // Default.
-            personCacheCfg.setName(PERSON_CACHE);
             personCacheCfg.setIndexedTypes(AffinityKey.class, Person.class);
 
             try (


Mime
View raw message