Hi All,

I encountered this weirdness in Arrow Java codebase that I hope someone can
help me understand.

This reset method of FixedValueVectors sets the allocation size to
INITIAL_VALUE_ALLOCATION.
I am wondering why it does that and how does it handle the case where the
vector is expanded through realloc.

https://github.com/apache/arrow/blob/master/java/vector/src/main/codegen/templates/FixedValueVectors.java#L165

For comparison, reset() in NullableValueVectors doesn't do that:

https://github.com/apache/arrow/blob/master/java/vector/src/main/codegen/templates/NullableValueVectors.java#L285

Appreciate the help!

Li

Reply via email to