Skip to content

[Java] VarBinaryWriter should support writing from byte[] or ByteBuffer #37705

@lidavidm

Description

@lidavidm

Describe the enhancement requested

The writer API only supports writing from ArrowBuf. So if you don't already have an ArrowBuf, you have to make a new allocation and copy the data over, only for the writer to copy the data from your new allocation into the vector. VarBinaryWriter should just also support these common types for bytestrings and eliminate an unnecessary copy. (VarBinaryVector already has overloads for both.)

Component(s)

Java

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions