Currently we seem to use in all applications of Arrow the IPC capabilities to move data between a Java process and a Python process. While this is 0-serialization, it is not zero-copy. By taking the address and offset, we can already create Python buffers from Java buffers: apache/arrow#1693. This is still a very low-level interface and we should provide the user with:
-
A guide on how to load Apache Arrow java libraries in Python (either through a fat-jar that was shipped with Arrow or how he should integrate it into its Java packaging)
-
pyarrow.Array.from_jvm, pyarrow.RecordBatch.from_jvm, … functions that take the respective Java objects and emit Python objects. These Python objects should also ensure that the underlying memory regions are kept alive as long as the Python objects exist.
This issue can also be used as a tracker for the various sub-tasks that will need to be done to complete this rather large milestone.
Reporter: Uwe Korn / @xhochy
Related issues:
Note: This issue was originally created as ARROW-2249. Please see the migration documentation for further details.
Currently we seem to use in all applications of Arrow the IPC capabilities to move data between a Java process and a Python process. While this is 0-serialization, it is not zero-copy. By taking the address and offset, we can already create Python buffers from Java buffers: apache/arrow#1693. This is still a very low-level interface and we should provide the user with:
A guide on how to load Apache Arrow java libraries in Python (either through a fat-jar that was shipped with Arrow or how he should integrate it into its Java packaging)
pyarrow.Array.from_jvm,pyarrow.RecordBatch.from_jvm, … functions that take the respective Java objects and emit Python objects. These Python objects should also ensure that the underlying memory regions are kept alive as long as the Python objects exist.This issue can also be used as a tracker for the various sub-tasks that will need to be done to complete this rather large milestone.
Reporter: Uwe Korn / @xhochy
Related issues:
Note: This issue was originally created as ARROW-2249. Please see the migration documentation for further details.