Re: Allocating additional memory to the Java Vector objects

2018-02-23 Thread Siddharth Teotia
[mailto:siddha...@dremio.com] > Sent: Friday, February 23, 2018 12:14 PM > To: dev@arrow.apache.org > Subject: Re: Allocating additional memory to the Java Vector objects > > Hi Atul, > > Currently there is no way for doing this. The only exposed method of > expanding the vec

RE: Allocating additional memory to the Java Vector objects

2018-02-23 Thread Atul Dambalkar
I plan to start with moderate initial capacity for the vectors. -Atul -Original Message- From: Siddharth Teotia [mailto:siddha...@dremio.com] Sent: Friday, February 23, 2018 12:14 PM To: dev@arrow.apache.org Subject: Re: Allocating additional memory to the Java Vector objects Hi Atul,

Re: Allocating additional memory to the Java Vector objects

2018-02-23 Thread Siddharth Teotia
Hi Atul, Currently there is no way for doing this. The only exposed method of expanding the vector buffer is reAlloc() and it allocates a new buffer of double the original capacity and copies the old contents into the new buffer. Thanks, Sidd On Fri, Feb 23, 2018 at 12:06 PM, Atul Dambalkar wro

Allocating additional memory to the Java Vector objects

2018-02-23 Thread Atul Dambalkar
Hi, I am creating IntVector in Java as follows - IntVector intVector = (IntVector) vectorSchemaRoot.getVector(name); intVector.setInitialCapacity(100); intVector.allocateNew(); Is there a way that I can allocate additional capacity to the same IntVector object by a defined number? Let's say some