Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-573 5d6cec4b4 -> 5aa305b42


# 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/1b592494
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/1b592494
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/1b592494

Branch: refs/heads/ignite-573
Commit: 1b592494f981ed1be5e4d892f4fc83b83822ade7
Parents: ac9ffe8
Author: Dmitiry Setrakyan <dsetrak...@gridgain.com>
Authored: Wed Mar 25 19:52:44 2015 -0700
Committer: Dmitiry Setrakyan <dsetrak...@gridgain.com>
Committed: Wed Mar 25 19:52:44 2015 -0700

----------------------------------------------------------------------
 .../ignite/examples/datagrid/CacheQueryExample.java     | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/1b592494/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 f735728..8fba9c7 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,19 +73,19 @@ public class CacheQueryExample {
             System.out.println();
             System.out.println(">>> Cache query example started.");
 
-            CacheConfiguration<?, ?> orgCacheCfg = new 
CacheConfiguration<>(ORG_CACHE);
+            CacheConfiguration<UUID, Organization> orgCacheCfg = new 
CacheConfiguration<>(ORG_CACHE);
 
             orgCacheCfg.setCacheMode(CacheMode.PARTITIONED); // Default.
             orgCacheCfg.setIndexedTypes(UUID.class, Organization.class);
 
-            CacheConfiguration<?, ?> personCacheCfg = new 
CacheConfiguration<>(PERSON_CACHE);
+            CacheConfiguration<AffinityKey<UUID>, Person> personCacheCfg = new 
CacheConfiguration<>(PERSON_CACHE);
 
             personCacheCfg.setCacheMode(CacheMode.PARTITIONED); // Default.
             personCacheCfg.setIndexedTypes(AffinityKey.class, Person.class);
 
             try (
-                IgniteCache<?, ?> orgCache = ignite.createCache(orgCacheCfg);
-                IgniteCache<?, ?> personCache = 
ignite.createCache(personCacheCfg)
+                IgniteCache<UUID, Organization> orgCache = 
ignite.createCache(orgCacheCfg);
+                IgniteCache<AffinityKey<UUID>, Person> personCache = 
ignite.createCache(personCacheCfg)
             ) {
                 // Populate cache.
                 initialize();
@@ -219,7 +219,7 @@ public class CacheQueryExample {
      * fields instead of whole key-value pairs.
      */
     private static void sqlFieldsQuery() {
-        IgniteCache<?, ?> cache = Ignition.ignite().cache(PERSON_CACHE);
+        IgniteCache<AffinityKey<UUID>, Person> cache = 
Ignition.ignite().cache(PERSON_CACHE);
 
         // Execute query to get names of all employees.
         QueryCursor<List<?>> cursor = cache.query(new SqlFieldsQuery(
@@ -237,7 +237,7 @@ public class CacheQueryExample {
      * fields instead of whole key-value pairs.
      */
     private static void sqlFieldsQueryWithJoin() {
-        IgniteCache<?, ?> cache = Ignition.ignite().cache(PERSON_CACHE);
+        IgniteCache<AffinityKey<UUID>, Person> cache = 
Ignition.ignite().cache(PERSON_CACHE);
 
         // Execute query to get names of all employees.
         String sql =

Reply via email to