Package dev.vortex.jni
Class NativeWriter
java.lang.Object
dev.vortex.jni.NativeWriter
JNI boundary for
VortexWriter.-
Method Summary
Modifier and TypeMethodDescriptionstatic voidclose(long writerPointer) Flush and close the writer.static longOpen a writer aturithat accepts batches matching the Arrow schema atarrowSchemaAddress.static booleanwriteBatch(long writerPointer, long arrowArrayAddress, long arrowSchemaAddress) Write a batch directly from Arrow C Data Interface addresses.
-
Method Details
-
create
public static long create(long sessionPointer, String uri, long arrowSchemaAddress, Map<String, String> options) Open a writer aturithat accepts batches matching the Arrow schema atarrowSchemaAddress. -
writeBatch
public static boolean writeBatch(long writerPointer, long arrowArrayAddress, long arrowSchemaAddress) Write a batch directly from Arrow C Data Interface addresses.- Parameters:
writerPointer- pointer fromcreate(long, java.lang.String, long, java.util.Map<java.lang.String, java.lang.String>)arrowArrayAddress- address of anArrowArraystructarrowSchemaAddress- address of anArrowSchemastruct- Returns:
trueon success
-
close
public static void close(long writerPointer) Flush and close the writer. Must be called exactly once.
-