Class ArrowAdapter
java.lang.Object
org.episteme.core.io.interop.ArrowAdapter
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringCreates a rudimentary Arrow Schema description for the matrix.static ByteBuffertoArrowBuffer(Matrix<Real> matrix) Converts a Matrix to an Arrow-compatible ByteBuffer (Float64 array).
-
Constructor Details
-
ArrowAdapter
public ArrowAdapter()
-
-
Method Details
-
toArrowBuffer
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
Creates a rudimentary Arrow Schema description for the matrix.- Returns:
- JSON-like string describing the schema (Field: "matrix", Type: Float64)
-