Commits


tianchen authored and Micah Kornfield committed 596faf34a6a
ARROW-5706: [Java] Remove type conversion in getValidityBufferValueCapacity Related to [ARROW-5706](https://issues.apache.org/jira/browse/ARROW-5706). Now implementation of getValidityBufferValueCapacity is: (int) (validityBuffer.capacity() * 8L) Seems no need to convert it to Long then convert it back to Int, just replace with: validityBuffer.capacity() * 8 VariableWidthVectorBenchmarks#getValueCapacity shows the performance: Before: avgt 5 5.731 ± 0.160 ns/op After: avgt 5 5.124 ± 0.125 ns/op Author: tianchen <niki.lj@alibaba-inc.com> Closes #4672 from tianchen92/ARROW-5706 and squashes the following commits: 46ca22e25 <tianchen> Remove type conversion in getValidityBufferValueCapacity