[
https://issues.apache.org/jira/browse/ARROW-2199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16386487#comment-16386487
]
ASF GitHub Bot commented on ARROW-2199:
---------------------------------------
siddharthteotia commented on a change in pull request #1646: ARROW-2199: [JAVA]
Control the memory allocated for inner vectors in containers.
URL: https://github.com/apache/arrow/pull/1646#discussion_r172281991
##########
File path:
java/vector/src/main/java/org/apache/arrow/vector/complex/NonNullableStructVector.java
##########
@@ -99,6 +99,17 @@ public void setInitialCapacity(int numRecords) {
}
}
+ @Override
+ public void setInitialCapacity(int valueCount, double density) {
+ for (final ValueVector vector : (Iterable<ValueVector>) this) {
+ if (vector instanceof DensityAwareVector) {
Review comment:
I think that's unnecessary delegation and then there is no purpose of having
a DensityAwareVector interface since typically everyone will implement the
interface -- some will delegate and rest will implement.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> [JAVA] Follow up fixes for ARROW-2019. Ensure density driven capacity is
> never less than 1 and propagate density throughout the vector tree
> -------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: ARROW-2199
> URL: https://issues.apache.org/jira/browse/ARROW-2199
> Project: Apache Arrow
> Issue Type: Improvement
> Components: Java - Vectors
> Reporter: Siddharth Teotia
> Assignee: Siddharth Teotia
> Priority: Major
> Labels: pull-request-available
> Fix For: 0.9.0
>
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)