Github user viirya commented on a diff in the pull request:
https://github.com/apache/spark/pull/19222#discussion_r179318575
--- Diff:
common/unsafe/src/main/java/org/apache/spark/unsafe/array/ByteArrayMethods.java
---
@@ -48,6 +49,16 @@ public static int roundNumberOfBytesToNearestWord(int
numBytes) {
public static int MAX_ROUNDED_ARRAY_LENGTH = Integer.MAX_VALUE - 15;
private static final boolean unaligned = Platform.unaligned();
+ /**
+ * MemoryBlock equality check for MemoryBlocks.
+ * @return true if the arrays are equal, false otherwise
+ */
+ public static boolean arrayEqualsBlock(
--- End diff --
I think this only works for `ByteArrayMemoryBlock`, doesn't it?
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]