Class JdkParquetRsLibrary
java.lang.Object
org.elasticsearch.nativeaccess.jdk.JdkParquetRsLibrary
- All Implemented Interfaces:
ParquetRsLibrary
Panama FFI bindings to the Rust es_parquet_rs shared library for Parquet operations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetSchemaFFI(String path, String configJson, long schemaAddr) Exports the Parquet file's Arrow schema via the Arrow C Data Interface.long[]getStatistics(String path, String configJson) Reads Parquet file statistics.Returns the last error message from the native library, or null if none.
-
Constructor Details
-
JdkParquetRsLibrary
public JdkParquetRsLibrary()
-
-
Method Details
-
lastError
Description copied from interface:ParquetRsLibraryReturns the last error message from the native library, or null if none.- Specified by:
lastErrorin interfaceParquetRsLibrary
-
getStatistics
Description copied from interface:ParquetRsLibraryReads Parquet file statistics.- Specified by:
getStatisticsin interfaceParquetRsLibrary- Parameters:
path- the path to the Parquet fileconfigJson- optional JSON storage configuration, or null- Returns:
- a two-element array: [totalRows, totalBytes], or null on error
-
getSchemaFFI
Description copied from interface:ParquetRsLibraryExports the Parquet file's Arrow schema via the Arrow C Data Interface. Writes an FFI_ArrowSchema to the given memory address.- Specified by:
getSchemaFFIin interfaceParquetRsLibrary- Parameters:
path- the path to the Parquet fileconfigJson- optional JSON storage configuration, or nullschemaAddr- memory address of a pre-allocated ArrowSchema FFI struct- Returns:
- 0 on success, -1 on error (check
ParquetRsLibrary.lastError())
-