Skip to content

[Java] VarCharWriter should support writing from Text and String #37706

Closed
@lidavidm

Description

@lidavidm

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions