ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [50/50] [abbrv] ignite git commit: sql-store Compare values without unmarshalling.
Date Thu, 04 Feb 2016 14:45:59 GMT
sql-store Compare values without unmarshalling.


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

Branch: refs/heads/sql-store-cmp
Commit: 0707e3843e8f99ef7ed6b342a2db04f606f7307c
Parents: 9536656
Author: sboikov <sboikov@gridgain.com>
Authored: Thu Feb 4 17:44:48 2016 +0300
Committer: sboikov <sboikov@gridgain.com>
Committed: Thu Feb 4 17:44:48 2016 +0300

----------------------------------------------------------------------
 .../java/org/apache/ignite/internal/binary/BinaryFieldImpl.java  | 4 ++--
 .../ignite/internal/processors/query/GridQueryProcessor.java     | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/0707e384/modules/core/src/main/java/org/apache/ignite/internal/binary/BinaryFieldImpl.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/binary/BinaryFieldImpl.java
b/modules/core/src/main/java/org/apache/ignite/internal/binary/BinaryFieldImpl.java
index 706bd39..abbc42f 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/binary/BinaryFieldImpl.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/binary/BinaryFieldImpl.java
@@ -106,7 +106,7 @@ public class BinaryFieldImpl implements BinaryFieldEx {
 
     /** {@inheritDoc} */
     @Override public long fieldAddress(long addr, int len) {
-        int typeId = GridUnsafe.unsafe().getInt(addr + GridBinaryMarshaller.TYPE_ID_POS);
+        int typeId = GridUnsafe.getInt(addr + GridBinaryMarshaller.TYPE_ID_POS);
 
         if (typeId != this.typeId) {
             throw new BinaryObjectException("Failed to get field because type ID of passed
object differs" +
@@ -114,7 +114,7 @@ public class BinaryFieldImpl implements BinaryFieldEx {
                 ", actual=" + typeId + ']');
         }
 
-        int schemaId = GridUnsafe.unsafe().getInt(addr + GridBinaryMarshaller.SCHEMA_ID_POS);
+        int schemaId = GridUnsafe.getInt(addr + GridBinaryMarshaller.SCHEMA_ID_POS);
 
         BinarySchema schema = schemas.schema(schemaId);
 

http://git-wip-us.apache.org/repos/asf/ignite/blob/0707e384/modules/core/src/main/java/org/apache/ignite/internal/processors/query/GridQueryProcessor.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/query/GridQueryProcessor.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/query/GridQueryProcessor.java
index be382c3..e6461f7 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/query/GridQueryProcessor.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/query/GridQueryProcessor.java
@@ -2070,7 +2070,7 @@ public class GridQueryProcessor extends GridProcessorAdapter {
          * @throws IgniteCheckedException If failed.
          */
         private boolean hasField(long addr, int len, String fieldName) throws IgniteCheckedException
{
-            byte type = GridUnsafe.unsafe().getByte(addr);
+            byte type = GridUnsafe.getByte(addr);
 
             if (type != GridBinaryMarshaller.BINARY_OBJ)
                 return false;
@@ -2136,7 +2136,7 @@ public class GridQueryProcessor extends GridProcessorAdapter {
             BinaryField field0 = field;
 
             if (field0 == null && !fieldTaken) {
-                int typeId = GridUnsafe.unsafe().getInt(addr + GridBinaryMarshaller.TYPE_ID_POS);
+                int typeId = GridUnsafe.getInt(addr + GridBinaryMarshaller.TYPE_ID_POS);
 
                 BinaryType type = binaryCtx.metadata(typeId);
 


Mime
View raw message