ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From voze...@apache.org
Subject [1/2] ignite git commit: IGNITE-1770: Offset then ID in the tail.
Date Mon, 26 Oct 2015 07:51:06 GMT
Repository: ignite
Updated Branches:
  refs/heads/ignite-1770 c4ce99736 -> 96d08a531


IGNITE-1770: Offset then ID in the tail.


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

Branch: refs/heads/ignite-1770
Commit: 7bd743c3697e4e3886e7b3e12a5836907f877fec
Parents: c4ce997
Author: vozerov-gridgain <vozerov@gridgain.com>
Authored: Mon Oct 26 10:42:36 2015 +0300
Committer: vozerov-gridgain <vozerov@gridgain.com>
Committed: Mon Oct 26 10:42:36 2015 +0300

----------------------------------------------------------------------
 .../internal/portable/PortableWriterExImpl.java       | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/7bd743c3/modules/core/src/main/java/org/apache/ignite/internal/portable/PortableWriterExImpl.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/portable/PortableWriterExImpl.java
b/modules/core/src/main/java/org/apache/ignite/internal/portable/PortableWriterExImpl.java
index 93350b4..a9d6883 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/portable/PortableWriterExImpl.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/portable/PortableWriterExImpl.java
@@ -125,7 +125,7 @@ public class PortableWriterExImpl implements PortableWriter, PortableRawWriterEx
 
     /** Field infos. */
     // TODO: Optimize.
-    private List<Integer> fieldInfos;
+    private List<Integer> tail;
 
     /**
      * @param ctx Context.
@@ -339,12 +339,12 @@ public class PortableWriterExImpl implements PortableWriter, PortableRawWriterEx
         // 1. Write raw offset.
         out.writeInt(start + RAW_DATA_OFF_POS, (rawOffPos == 0 ? out.position() : rawOffPos)
- start);
 
-        if (fieldInfos != null) {
+        if (tail != null) {
             // 2. Write schema offset.
             out.writeInt(start + SCHEMA_OFF_POS, out.position() - start);
 
             // 3. Write the schema.
-            for (Integer val : fieldInfos)
+            for (Integer val : tail)
                 out.writeInt(val);
         }
 
@@ -1818,11 +1818,11 @@ public class PortableWriterExImpl implements PortableWriter, PortableRawWriterEx
       * @param off Offset starting from object head.
       */
     private void saveFieldInfo(int id, int off) {
-        if (fieldInfos == null)
-            fieldInfos = new ArrayList<>(2);
+        if (tail == null)
+            tail = new ArrayList<>(2);
 
-        fieldInfos.add(id);
-        fieldInfos.add(off);
+        tail.add(off);
+        tail.add(id);
     }
 
      /**


Mime
View raw message