Defensive copies are part of the behavior of `Binary`. If the binary is marked as reused, then `getBytes` will make a copy. That's a more reliable way of making sure the copy happens if needed: The producer of the binary marks whether or not it will be reused and the consumer of a binary uses `getBytes` if it will be kept around, and `getBytesUnsafe` if it will be consumed immediately.
[ Full content available at: https://github.com/apache/parquet-mr/pull/504 ] This message was relayed via gitbox.apache.org for [email protected]
