Vortex 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.
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());