Skip to content

Commit d0b0273

Browse files
committed
Changes the access modifier of reallocValidityBuffer from package-private to protected.
This allows subclasses to reallocate the validity buffer independently of the struct elements. Previously, expanding the validity buffer required a full vector reallocation, which could cause an OversizedAllocationException if the child data vectors were already near their capacity.
1 parent 6e0b5f7 commit d0b0273

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vector/src/main/java/org/apache/arrow/vector/complex/StructVector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ public void reAlloc() {
529529
super.reAlloc();
530530
}
531531

532-
private void reallocValidityBuffer() {
532+
protected void reallocValidityBuffer() {
533533
final int currentBufferCapacity = checkedCastToInt(validityBuffer.capacity());
534534
long newAllocationSize = getNewAllocationSize(currentBufferCapacity);
535535

0 commit comments

Comments
 (0)