Class NativeDataSource

java.lang.Object
dev.vortex.jni.NativeDataSource

public final class NativeDataSource extends Object
JNI boundary for DataSource.
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    arrowSchema(long pointer, long schemaAddress)
    Export the data source's schema into the Arrow C Data Interface struct at schemaAddress.
    static void
    free(long pointer)
    Free a data source pointer.
    static long
    open(long sessionPointer, String[] uris, Map<String,String> options)
    Open a data source from one or more URIs or globs.
    static void
    rowCount(long pointer, long[] out)
    Populate out with [rows, cardinality].

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • open

      public static long open(long sessionPointer, String[] uris, Map<String,String> options)
      Open a data source from one or more URIs or globs.
      Parameters:
      sessionPointer - pointer from NativeSession.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 at schemaAddress.
    • rowCount

      public static void rowCount(long pointer, long[] out)
      Populate out with [rows, cardinality]. Cardinality is one of 0=unknown, 1=estimate, 2=exact.