David Li created ARROW-15907:
--------------------------------

             Summary: [Java] Add VarCharWriter#write(String)
                 Key: ARROW-15907
                 URL: https://issues.apache.org/jira/browse/ARROW-15907
             Project: Apache Arrow
          Issue Type: Improvement
          Components: Java
            Reporter: David Li


For convenience, since the default method requires allocating an ArrowBuf and 
such. See [PR#11982 
(comment)|https://github.com/apache/arrow/pull/11982#discussion_r814226648]

It's generated [in 
ComplexWriters.java](https://github.com/apache/arrow/blob/8088f71c5d545349a24812b9e516ab07c850d0c6/java/vector/src/main/codegen/templates/ComplexWriters.java#L190-L207),
 we could add an {{if}} and special-case VarChar to have a helper method that 
uses setBytes instead.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to