This is an automated email from the ASF dual-hosted git repository.

amashenkov pushed a commit to branch ignite-14743-row-formats
in repository https://gitbox.apache.org/repos/asf/ignite-3.git


The following commit(s) were added to refs/heads/ignite-14743-row-formats by 
this push:
     new 9ce3e73  Minor.
9ce3e73 is described below

commit 9ce3e73a441d5dcc098c49a7062291f99f3fd79f
Author: Andrew Mashenkov <[email protected]>
AuthorDate: Fri Jun 25 14:00:07 2021 +0300

    Minor.
---
 .../java/org/apache/ignite/internal/schema/row/RowAssembler.java   | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git 
a/modules/schema/src/main/java/org/apache/ignite/internal/schema/row/RowAssembler.java
 
b/modules/schema/src/main/java/org/apache/ignite/internal/schema/row/RowAssembler.java
index 6743b0f..71db3f2 100644
--- 
a/modules/schema/src/main/java/org/apache/ignite/internal/schema/row/RowAssembler.java
+++ 
b/modules/schema/src/main/java/org/apache/ignite/internal/schema/row/RowAssembler.java
@@ -56,6 +56,9 @@ public class RowAssembler {
     /** The number of non-null varlen columns in values chunk. */
     private final int valVarlenCols;
 
+    /** Null-map length in bytes in values chunk. */
+    private final int valNullMapSize;
+
     /** Value write mode. */
     private final ChunkFormat valWriteMode;
 
@@ -188,7 +191,7 @@ public class RowAssembler {
         strEncoder = null;
 
         final int keyNullMapSize = keyHasNulls ? 
schema.keyColumns().nullMapSize() : 0;
-        final int valNullMapSize = valHasNulls ? 
schema.valueColumns().nullMapSize() : 0;
+        valNullMapSize = valHasNulls ? schema.valueColumns().nullMapSize() : 0;
 
         final ChunkFormat keyWriteMode = ChunkFormat.formatter(keyDataSize);
         valWriteMode = ChunkFormat.formatter(valDataSize);
@@ -508,7 +511,7 @@ public class RowAssembler {
             // Create value chunk writer.
             chunkWriter = valWriteMode.writer(buf,
                 BinaryRow.HEADER_SIZE + chunkWriter.chunkLength() /* Key chunk 
size */,
-                schema.valueColumns().nullMapSize(),
+                valNullMapSize,
                 valVarlenCols);
         }
     }

Reply via email to