Github user rxin commented on a diff in the pull request:
https://github.com/apache/spark/pull/7682#discussion_r35506212
--- Diff:
sql/catalyst/src/main/java/org/apache/spark/sql/catalyst/expressions/UnsafeRow.java
---
@@ -436,4 +471,19 @@ public String toString() {
public boolean anyNull() {
return BitSetMethods.anySet(baseObject, baseOffset, bitSetWidthInBytes
/ 8);
}
+
+ /**
+ * Writes the content of this row into a memory address, identified by
an object and an offset.
+ * The target memory address must already been allocated, and have
enough space to hold all the
+ * bytes in this string.
+ */
+ public void writeToMemory(Object target, long targetOffset) {
--- End diff --
Not for this PR, but I'm using this in my struct type support PR.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]