Java API#
The Vortex Java API provides bindings for the Vortex library, enabling Java applications to work with Vortex arrays and files.
The API is split into two main components:
Vortex JNI: Core JNI bindings for Vortex functionality
Vortex Spark: Apache Spark integration for reading Vortex files
API Documentation
- Vortex JNI API - Core Java bindings for Vortex
- Vortex Spark API - Apache Spark integration
Installation#
The Java API can be included in your project using Gradle or Maven. Please refer to the main documentation for detailed installation instructions.
Compatibility#
The Java bindings are supported on the following architectures:
x86_64 Linux
ARM64 Linux
Apple Silicon macOS
They support any Linux distribution with a GLIBC version >= 2.31. This includes
Amazon Linux 2022 or newer
Ubuntu 20.04 or newer
Usage Example#
Here’s a basic example of using the Vortex Java API to read a Vortex file:
import dev.vortex.api.File;
import dev.vortex.api.Array;
// Open a Vortex file
File vortexFile = File.open("path/to/file.vortex");
// Read arrays from the file
Array array = vortexFile.readArray();
// Work with the array data
System.out.println("Array length: " + array.getLength());