/arrow-java-playground

Primary LanguageJavaApache License 2.0Apache-2.0

arrow-java-playground

A sandbox to play with Arrow Java features.

Compile

mvn clean install

Run a Sample Application with Arrow-Java

java -cp target/arrow-java-playground-1.0-SNAPSHOT.jar io.arrow.playground.App

Run Memory Examples

With debug mode to enable logs

No Memory Leak

java -Darrow.memory.debug.allocator=true -cp target/arrow-java-playground-1.0-SNAPSHOT.jar io.arrow.playground.MemoryApp --mode no-leak

Memory Leak

java -Darrow.memory.debug.allocator=true -cp target/arrow-java-playground-1.0-SNAPSHOT.jar io.arrow.playground.MemoryApp --mode leak

Java-Python Roundtripping

Dictionary Data

MapValuesV2.java and map_values_v2.py are the relevant interfaces.

To see it in action, first build the project mvn clean install and then cd java-python. python map_values_v2.py

JNI Example

mvn clean install
java -Djava.library.path=target -cp target/classes io.arrow.playground.cpp.NativeExample

Or

java -Djava.library.path=target -cp target/arrow-java-playground.jar io.arrow.playground.cpp.NativeExample

JNI Arrow Example

mvn clean install
java -Djava.library.path=target -cp target/arrow-java-playground.jar io.arrow.playground.cpp.MapValues