I agree that a blog post would be helpful (of course, blogs are a lot of work to write!) -- it would be good to let people know that the machinery is available to do this kind of bidirectional zero-copy passing. I was glad to see ARROW-3191 and I would like to see the Java folks "tooting their own horn" about it
On Wed, Jul 17, 2019 at 10:15 AM Jacques Nadeau <jacq...@apache.org> wrote: > > Java > C++ has been available for a long time, I believe. With ARROW-3191, > we now have a good story as well for C++ > Java. > > Reference management is the key thing you have to think about. Now that we > have the ReferenceManager interface in Java, you can decide how this works > between the two layers. > > A blog post by someone on this would be great. If others don't get to this, > I'll see if I can. > > On Wed, Jul 17, 2019 at 5:42 AM Uwe L. Korn <uw...@xhochy.com> wrote: > > > Hello Hans, > > > > we sadly have no code for the C++<->Java interaction but a good example is > > the Python<->Java interaction code in > > https://github.com/apache/arrow/blob/master/python/pyarrow/jvm.py . This > > call Java from Python using the jpype1 module and then uses the memory > > pointers in the Java objects to construct pyarrow objects out of it. > > > > Cheers > > Uwe > > > > On Wed, Jul 17, 2019, at 2:38 PM, hans-joachim.bo...@web.de wrote: > > > In my application I need to share Arrow buffers allocated in Java with > > > C++ in the same process. > > > Is there already some code in Arrow to pass the native address from > > > Java to C++ or do I have to do my own JNI call? > > > I do not want to go via the Plasma sockets and did not find any hint in > > > docs and Jira. > > > > > > Can anybody point me to the right place or confirm that this is to be > > done ? > > > > > > Thanks, > > > Hans. > > > > >