Package dev.vortex.jni
Class NativeDataSource
java.lang.Object
dev.vortex.jni.NativeDataSource
JNI boundary for
DataSource.-
Method Summary
Modifier and TypeMethodDescriptionstatic voidarrowSchema(long pointer, long schemaAddress) Export the data source's schema into the Arrow C Data Interface struct atschemaAddress.static voidfree(long pointer) Free a data source pointer.static longOpen a data source from one or more URIs or globs.static voidrowCount(long pointer, long[] out) Populateoutwith[rows, cardinality].
-
Method Details
-
open
Open a data source from one or more URIs or globs.- Parameters:
sessionPointer- pointer fromNativeSession.newSession()uris- paths or globs (for example["file:///a.vortex", "file:///b.vortex"])options- object-store properties (may be null)
-
free
public static void free(long pointer) Free a data source pointer. -
arrowSchema
public static void arrowSchema(long pointer, long schemaAddress) Export the data source's schema into the Arrow C Data Interface struct atschemaAddress. -
rowCount
public static void rowCount(long pointer, long[] out) Populateoutwith[rows, cardinality]. Cardinality is one of0=unknown,1=estimate,2=exact.
-