Github user kiszk commented on a diff in the pull request:
https://github.com/apache/spark/pull/19222#discussion_r172390613
--- Diff:
common/unsafe/src/main/java/org/apache/spark/unsafe/types/UTF8String.java ---
@@ -97,10 +99,10 @@ public static UTF8String fromBytes(byte[] bytes, int
offset, int numBytes) {
}
/**
- * Creates an UTF8String from given address (base and offset) and length.
+ * Creates an UTF8String from given memory block.
*/
- public static UTF8String fromAddress(Object base, long offset, int
numBytes) {
- return new UTF8String(base, offset, numBytes);
+ public static UTF8String fromMemoryBlock(MemoryBlock base) {
--- End diff --
Good catch, let us drop this
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]