You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "David Li (Jira)" <ji...@apache.org> on 2022/03/10 16:04:00 UTC

[jira] [Created] (ARROW-15907) [Java] Add VarCharWriter#write(String)

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)