ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yzhda...@apache.org
Subject incubator-ignite git commit: ignite-249 fixed
Date Fri, 13 Feb 2015 13:55:00 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/sprint-1 0f08d413c -> f05f21409


ignite-249 fixed


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

Branch: refs/heads/sprint-1
Commit: f05f214098279876613f3d598946c90a371fa0ae
Parents: 0f08d41
Author: Yakov Zhdanov <yzhdanov@gridgain.com>
Authored: Fri Feb 13 16:54:45 2015 +0300
Committer: Yakov Zhdanov <yzhdanov@gridgain.com>
Committed: Fri Feb 13 16:54:45 2015 +0300

----------------------------------------------------------------------
 .../internal/processors/portable/GridPortableProcessor.java | 9 +++++++++
 .../processors/portable/os/GridOsPortableProcessor.java     | 5 +++++
 2 files changed, 14 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/f05f2140/modules/core/src/main/java/org/apache/ignite/internal/processors/portable/GridPortableProcessor.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/portable/GridPortableProcessor.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/portable/GridPortableProcessor.java
index 668709f..251f133 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/portable/GridPortableProcessor.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/portable/GridPortableProcessor.java
@@ -130,4 +130,13 @@ public interface GridPortableProcessor extends GridProcessor {
      * @return Field value.
      */
     public Object field(Object obj, String fieldName);
+
+    /**
+     * Checks whether field is set in the object.
+     *
+     * @param obj Object.
+     * @param fieldName Field name.
+     * @return {@code true} if field is set.
+     */
+    public boolean hasField(Object obj, String fieldName);
 }

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/f05f2140/modules/core/src/main/java/org/apache/ignite/internal/processors/portable/os/GridOsPortableProcessor.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/portable/os/GridOsPortableProcessor.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/portable/os/GridOsPortableProcessor.java
index db5357a..ca21545 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/portable/os/GridOsPortableProcessor.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/portable/os/GridOsPortableProcessor.java
@@ -112,4 +112,9 @@ public class GridOsPortableProcessor extends GridProcessorAdapter implements
Gri
     @Override public Object field(Object obj, String fieldName) {
         return null;
     }
+
+    /** {@inheritDoc} */
+    @Override public boolean hasField(Object obj, String fieldName) {
+        return false;
+    }
 }


Mime
View raw message