lidavidm opened a new issue, #37703:
URL: https://github.com/apache/arrow/issues/37703

   ### Describe the enhancement requested
   
   ListVector (or really, its abstract base class) adds an [overload of 
`setInitialCapacity`](https://github.com/apache/arrow/blob/15a8ac3ce4e3ac31f9f361770ad4a38c69102aa1/java/vector/src/main/java/org/apache/arrow/vector/complex/BaseRepeatedValueVector.java#L168-L206)
 that also preallocates the inner vector based on the "density" of the list 
items. However sometimes you know the number of inner elements up front, so it 
would be clearer (and less error-prone) to just tell the vector this fact. 
   
   You could do this by manipulating the inner vector directly but given we 
have the other overload, this one also makes sense.
   
   ### Component(s)
   
   Java


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to