Class ArrowAdapter

java.lang.Object
org.episteme.core.io.interop.ArrowAdapter

public class ArrowAdapter extends Object
Adapter for Apache Arrow Integration.

Facilitates Zero-Copy data exchange by exporting Episteme Matrices into Arrow-compatible ByteBuffers (Float64 contiguous arrays).

Since:
1.2
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Constructor Details

    • ArrowAdapter

      public ArrowAdapter()
  • Method Details

    • toArrowBuffer

      public static ByteBuffer toArrowBuffer(Matrix<Real> matrix)
      Converts a Matrix to an Arrow-compatible ByteBuffer (Float64 array). This buffer can be passed to Python/Pandas via IPC.
      Parameters:
      matrix - Source matrix
      Returns:
      ByteBuffer in Little Endian containing doubles
    • getSchemaDescription

      public static String getSchemaDescription()
      Creates a rudimentary Arrow Schema description for the matrix.
      Returns:
      JSON-like string describing the schema (Field: "matrix", Type: Float64)