Github user viirya commented on a diff in the pull request:
https://github.com/apache/spark/pull/19222#discussion_r171785720
--- Diff:
common/unsafe/src/main/java/org/apache/spark/unsafe/hash/Murmur3_x86_32.java ---
@@ -87,6 +106,35 @@ public static int hashUnsafeBytes2(Object base, long
offset, int lengthInBytes,
return fmix(h1, lengthInBytes);
}
+ public static int hashUnsafeBytes2Block(MemoryBlock base, int seed) {
--- End diff --
Can't we just call `hashUnsafeBytes2` with the `baseObject`, `baseOffset`
and `size` of `base`?
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]