ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [5/5] ignite git commit: ignite-3261
Date Wed, 08 Jun 2016 14:44:45 GMT
ignite-3261


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

Branch: refs/heads/ignite-3261
Commit: e82e88bf3be0af3510a8679753c13c4ec6805ad1
Parents: ec5706f
Author: sboikov <sboikov@gridgain.com>
Authored: Wed Jun 8 17:44:26 2016 +0300
Committer: sboikov <sboikov@gridgain.com>
Committed: Wed Jun 8 17:44:26 2016 +0300

----------------------------------------------------------------------
 .../org/apache/ignite/internal/binary/BinaryContext.java  | 10 ++++++++++
 1 file changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/e82e88bf/modules/core/src/main/java/org/apache/ignite/internal/binary/BinaryContext.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/binary/BinaryContext.java
b/modules/core/src/main/java/org/apache/ignite/internal/binary/BinaryContext.java
index daf34ad..3851678 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/binary/BinaryContext.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/binary/BinaryContext.java
@@ -965,6 +965,7 @@ public class BinaryContext {
     /**
      * @param cls Class.
      * @param id Type ID.
+     * @param affFieldName Affinity field name.
      * @return GridBinaryClassDescriptor.
      */
     public BinaryClassDescriptor registerPredefinedType(Class<?> cls, int id, String
affFieldName) {
@@ -994,6 +995,15 @@ public class BinaryContext {
         if (affFieldName != null)
             affKeyFieldNames.putIfAbsent(id, affFieldName);
 
+        if (affFieldName != null) {
+            metaHnd.addMeta(id, new BinaryMetadata(id,
+                simpleClsName,
+                desc.fieldsMeta(),
+                affFieldName,
+                desc.schema() != null ? Collections.singleton(desc.schema()) : null,
+                false).wrap(this));
+        }
+
         return desc;
     }
 


Mime
View raw message