Skip to content

Commit

Permalink
Updated documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
rxin committed Aug 1, 2015
1 parent 00354b9 commit 6687b6f
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -176,13 +176,16 @@ object GenerateRowConcat extends CodeGenerator[(StructType, StructType), UnsafeR
if (UnsafeRow.isFixedLength(field.dataType)) {
""
} else {
val cursor = offset + outputBitsetWords * 8 + i * 8
// Number of bytes to increase for the offset. Note that since in UnsafeRow we store the
// offset in the upper 32 bit of the words, we can just shift the offset to the left by
// 32 and increment that amount in place.
val shift =
if (i < schema1.size) {
(outputBitsetWords - bitset1Words + schema2.size) * 8
} else {
(outputBitsetWords - bitset2Words + schema1.size) * 8
}
val cursor = offset + outputBitsetWords * 8 + i * 8
s"""
|PlatformDependent.UNSAFE.putLong(buf, $cursor,
| PlatformDependent.UNSAFE.getLong(buf, $cursor) + (${shift}L << 32));
Expand Down

0 comments on commit 6687b6f

Please sign in to comment.