[ 
https://issues.apache.org/jira/browse/ARROW-886?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16046885#comment-16046885
 ] 

Steven Phillips commented on ARROW-886:
---------------------------------------

The original idea was that a user of this interface would know in advance how 
many records they intended to write in a given batch, but wouldn't necessarily 
know the total length of the variable length columns. So a user would use the 
setInitialCapacity() method. Then they could use set() for the fixed length 
vectors, and setSafe() for the variable length vectors.

Also, we could add a new method to the valuevector interface, such as 
expandValueCapacity(int values) which would allow expanding the value capacity 
of the vectors (including child vectors) but wouldn't touch the variable length 
data buffer.

> VariableLengthVectors don't reAlloc offsets
> -------------------------------------------
>
>                 Key: ARROW-886
>                 URL: https://issues.apache.org/jira/browse/ARROW-886
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Java - Vectors
>    Affects Versions: 0.3.0
>            Reporter: Emilio Lahr-Vivaz
>            Assignee: Emilio Lahr-Vivaz
>             Fix For: 0.3.0
>
>




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to