You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@arrow.apache.org by Andrew Melo <an...@gmail.com> on 2022/04/06 21:55:54 UTC

ArrowBuf.nioBuffer() reference counting

Hello,

When using (on Java) ArrowBuf.nioBuffer(), does care need to be taken
so that the underlying ArrowBuf doesn't go out of scope? Or does it
increment the reference count somewhere behind the scenes?

Thanks
Andrew

Re: ArrowBuf.nioBuffer() reference counting

Posted by Jacques Nadeau <ja...@apache.org>.
I believe the former. You need to be wary and pay attention.

On Wed, Apr 6, 2022, 2:56 PM Andrew Melo <an...@gmail.com> wrote:

> Hello,
>
> When using (on Java) ArrowBuf.nioBuffer(), does care need to be taken
> so that the underlying ArrowBuf doesn't go out of scope? Or does it
> increment the reference count somewhere behind the scenes?
>
> Thanks
> Andrew
>