ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [08/50] incubator-ignite git commit: # IGNITE-330 Indexed types should not be set if type metadata used.
Date Wed, 25 Mar 2015 04:18:37 GMT
# IGNITE-330 Indexed types should not be set if type metadata used.


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

Branch: refs/heads/ignite-496
Commit: b981d2061e9b11ad1e86baa8aa1d2519db22167e
Parents: f0f2f76
Author: AKuznetsov <akuznetsov@gridgain.com>
Authored: Tue Mar 24 17:41:38 2015 +0700
Committer: AKuznetsov <akuznetsov@gridgain.com>
Committed: Tue Mar 24 17:41:38 2015 +0700

----------------------------------------------------------------------
 .../ignite/schema/generator/CodeGenerator.java  | 26 +++-----------------
 1 file changed, 3 insertions(+), 23 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/b981d206/modules/schema-import/src/main/java/org/apache/ignite/schema/generator/CodeGenerator.java
----------------------------------------------------------------------
diff --git a/modules/schema-import/src/main/java/org/apache/ignite/schema/generator/CodeGenerator.java
b/modules/schema-import/src/main/java/org/apache/ignite/schema/generator/CodeGenerator.java
index 861c6fd..d17b215 100644
--- a/modules/schema-import/src/main/java/org/apache/ignite/schema/generator/CodeGenerator.java
+++ b/modules/schema-import/src/main/java/org/apache/ignite/schema/generator/CodeGenerator.java
@@ -634,36 +634,16 @@ public class CodeGenerator {
                     add2(src, "grps.put(\"" + group.getKey() + "\", grpItems);");
                 }
 
-                add2(src, "ccfg.setTypeMetadata(meta);");
+                add2(src, "type.setGroups(grps);");
                 add0(src, "");
             }
 
-            first = false;
-        }
-
-        add2(src, "type.setGroups(grps);");
-        add0(src, "");
-
-        // Generate Indexed types.
-        StringBuilder indexedTypes = new StringBuilder(pojos.size() * 15);
-
-        first = true;
-
-        for (PojoDescriptor pojo : pojos) {
-            if (!first)
-                indexedTypes.append(", ");
-
-            indexedTypes
-                .append(pojo.keyClassName()).append(".class, ")
-                .append(pojo.valueClassName()).append(".class");
+            add2(src, "ccfg.setTypeMetadata(meta);");
+            add0(src, "");
 
             first = false;
         }
 
-        add2(src, "// Indexed types.");
-        add2(src, "ccfg.setIndexedTypes(" + indexedTypes + ");");
-        add0(src, "");
-
         add2(src, "return ccfg;");
         add1(src, "}");
 


Mime
View raw message