arrow-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Li Jin <ice.xell...@gmail.com>
Subject [Java] Strange reset() method in FixedValueVectors
Date Fri, 28 Jul 2017 15:55:48 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message