Closed
Description
Describe the enhancement requested
VarCharWriter
only exposes methods for writing from an ArrowBuf. As with #37705, this means that to write a string in this API, you have to copy your string to a byte[]
, then copy it to a new allocation, and then copy that again to the actual data buffer. The implementation already has methods for writing from a Text
, so we should just expose that in the interface. It may also be useful to expose a method that takes a String
, which would serialize it to a Text
object inside the writer for you.
Component(s)
Java