liyafan82 commented on a change in pull request #8214:
URL: https://github.com/apache/arrow/pull/8214#discussion_r494721296



##########
File path: java/vector/src/main/java/org/apache/arrow/vector/BitVector.java
##########
@@ -119,13 +119,16 @@ public void setInitialCapacity(int valueCount) {
     lastValueCapacity = valueCount;
   }
 
-  /**
-   * Get the current value capacity for the vector.
-   *
-   * @return number of elements that vector can hold.
-   */
   @Override
-  public int getValueCapacity() {
+  protected void refreshValueCapacity() {

Review comment:
       I see. Thanks. 
   The fundamental reason is that `getValueBufferValueCapacity` is declared 
private, so the sub-class is not overriding the one in the super class. 
   How about we make it protected (as the sub-class is actually overriding the 
behavior of the super class), so no longer have to override 
`refreshValueCapacity` here? 




----------------------------------------------------------------
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.

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


Reply via email to