Enum JniLoader
- All Implemented Interfaces:
Serializable,Comparable<JniLoader>
Singleton wrapper protecting access to JNI functions.
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionvoidconnectionCancel(NativeConnectionHandle connection) voidconnectionCommit(NativeConnectionHandle connection) connectionGetInfo(NativeConnectionHandle connection, int[] infoCodes) connectionGetObjects(NativeConnectionHandle connection, int depth, String catalog, String dbSchema, String tableName, String[] tableTypes, String columnName) byte[]connectionGetOptionBytes(NativeConnectionHandle handle, String key) doubleconnectionGetOptionDouble(NativeConnectionHandle handle, String key) longconnectionGetOptionLong(NativeConnectionHandle handle, String key) connectionGetOptionString(NativeConnectionHandle handle, String key) connectionGetStatisticNames(NativeConnectionHandle connection) connectionGetStatistics(NativeConnectionHandle connection, String catalogPattern, String dbSchemaPattern, String tableNamePattern, boolean approximate) connectionGetTableSchema(NativeConnectionHandle connection, String catalog, String dbSchema, String tableName) connectionGetTableTypes(NativeConnectionHandle connection) connectionReadPartition(NativeConnectionHandle connection, ByteBuffer partition) voidconnectionRollback(NativeConnectionHandle connection) voidconnectionSetOptionBytes(NativeConnectionHandle handle, String key, byte[] value) voidconnectionSetOptionDouble(NativeConnectionHandle handle, String key, double value) voidconnectionSetOptionLong(NativeConnectionHandle handle, String key, long value) voidconnectionSetOptionString(NativeConnectionHandle connection, String key, String value) byte[]databaseGetOptionBytes(NativeDatabaseHandle handle, String key) doubledatabaseGetOptionDouble(NativeDatabaseHandle handle, String key) longdatabaseGetOptionLong(NativeDatabaseHandle handle, String key) databaseGetOptionString(NativeDatabaseHandle handle, String key) voiddatabaseSetOptionBytes(NativeDatabaseHandle handle, String key, byte[] value) voiddatabaseSetOptionDouble(NativeDatabaseHandle handle, String key, double value) voiddatabaseSetOptionLong(NativeDatabaseHandle handle, String key, long value) voiddatabaseSetOptionString(NativeDatabaseHandle handle, String key, String value) openConnection(NativeDatabaseHandle database) openDatabase(Map<String, String> parameters) openStatement(NativeConnectionHandle connection) voidstatementBind(NativeStatementHandle statement, ArrowArray batch, ArrowSchema schema) voidstatementBindStream(NativeStatementHandle statement, ArrowArrayStream stream) voidstatementCancel(NativeStatementHandle statement) statementExecutePartitions(NativeStatementHandle statement) statementExecuteQuery(NativeStatementHandle statement) statementExecuteSchema(NativeStatementHandle statement) longstatementExecuteUpdate(NativeStatementHandle statement) byte[]statementGetOptionBytes(NativeStatementHandle handle, String key) doublestatementGetOptionDouble(NativeStatementHandle handle, String key) longstatementGetOptionLong(NativeStatementHandle handle, String key) statementGetOptionString(NativeStatementHandle handle, String key) statementGetParameterSchema(NativeStatementHandle statement) voidstatementPrepare(NativeStatementHandle statement) voidstatementSetOptionBytes(NativeStatementHandle handle, String key, byte[] value) voidstatementSetOptionDouble(NativeStatementHandle handle, String key, double value) voidstatementSetOptionLong(NativeStatementHandle handle, String key, long value) voidstatementSetOptionString(NativeStatementHandle statement, String key, String value) voidstatementSetSqlQuery(NativeStatementHandle statement, String query) voidstatementSetSubstraitPlan(NativeStatementHandle statement, ByteBuffer plan) static JniLoaderReturns the enum constant of this type with the specified name.static JniLoader[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
openDatabase
- Throws:
AdbcException
-
openConnection
- Throws:
AdbcException
-
openStatement
- Throws:
AdbcException
-
statementCancel
- Throws:
AdbcException
-
statementExecutePartitions
public NativePartitionResult statementExecutePartitions(NativeStatementHandle statement) throws AdbcException - Throws:
AdbcException
-
statementExecuteQuery
public NativeQueryResult statementExecuteQuery(NativeStatementHandle statement) throws AdbcException - Throws:
AdbcException
-
statementSetSqlQuery
public void statementSetSqlQuery(NativeStatementHandle statement, String query) throws AdbcException - Throws:
AdbcException
-
statementSetSubstraitPlan
public void statementSetSubstraitPlan(NativeStatementHandle statement, ByteBuffer plan) throws AdbcException - Throws:
AdbcException
-
statementBind
public void statementBind(NativeStatementHandle statement, ArrowArray batch, ArrowSchema schema) throws AdbcException - Throws:
AdbcException
-
statementBindStream
public void statementBindStream(NativeStatementHandle statement, ArrowArrayStream stream) throws AdbcException - Throws:
AdbcException
-
statementExecuteUpdate
- Throws:
AdbcException
-
statementPrepare
- Throws:
AdbcException
-
statementExecuteSchema
public NativeSchemaResult statementExecuteSchema(NativeStatementHandle statement) throws AdbcException - Throws:
AdbcException
-
statementGetParameterSchema
public NativeSchemaResult statementGetParameterSchema(NativeStatementHandle statement) throws AdbcException - Throws:
AdbcException
-
statementGetOptionBytes
public byte[] statementGetOptionBytes(NativeStatementHandle handle, String key) throws AdbcException - Throws:
AdbcException
-
statementGetOptionDouble
public double statementGetOptionDouble(NativeStatementHandle handle, String key) throws AdbcException - Throws:
AdbcException
-
statementGetOptionLong
- Throws:
AdbcException
-
statementGetOptionString
public String statementGetOptionString(NativeStatementHandle handle, String key) throws AdbcException - Throws:
AdbcException
-
statementSetOptionBytes
public void statementSetOptionBytes(NativeStatementHandle handle, String key, byte[] value) throws AdbcException - Throws:
AdbcException
-
statementSetOptionDouble
public void statementSetOptionDouble(NativeStatementHandle handle, String key, double value) throws AdbcException - Throws:
AdbcException
-
statementSetOptionLong
public void statementSetOptionLong(NativeStatementHandle handle, String key, long value) throws AdbcException - Throws:
AdbcException
-
statementSetOptionString
public void statementSetOptionString(NativeStatementHandle statement, String key, String value) throws AdbcException - Throws:
AdbcException
-
connectionCancel
- Throws:
AdbcException
-
connectionGetObjects
public NativeQueryResult connectionGetObjects(NativeConnectionHandle connection, int depth, String catalog, String dbSchema, String tableName, String[] tableTypes, String columnName) throws AdbcException - Throws:
AdbcException
-
connectionGetInfo
public NativeQueryResult connectionGetInfo(NativeConnectionHandle connection, int[] infoCodes) throws AdbcException - Throws:
AdbcException
-
connectionGetTableSchema
public NativeSchemaResult connectionGetTableSchema(NativeConnectionHandle connection, String catalog, String dbSchema, String tableName) throws AdbcException - Throws:
AdbcException
-
connectionGetTableTypes
public NativeQueryResult connectionGetTableTypes(NativeConnectionHandle connection) throws AdbcException - Throws:
AdbcException
-
connectionCommit
- Throws:
AdbcException
-
connectionRollback
- Throws:
AdbcException
-
connectionReadPartition
public NativeQueryResult connectionReadPartition(NativeConnectionHandle connection, ByteBuffer partition) throws AdbcException - Throws:
AdbcException
-
connectionGetOptionBytes
public byte[] connectionGetOptionBytes(NativeConnectionHandle handle, String key) throws AdbcException - Throws:
AdbcException
-
connectionGetOptionDouble
public double connectionGetOptionDouble(NativeConnectionHandle handle, String key) throws AdbcException - Throws:
AdbcException
-
connectionGetOptionLong
- Throws:
AdbcException
-
connectionGetOptionString
public String connectionGetOptionString(NativeConnectionHandle handle, String key) throws AdbcException - Throws:
AdbcException
-
connectionSetOptionBytes
public void connectionSetOptionBytes(NativeConnectionHandle handle, String key, byte[] value) throws AdbcException - Throws:
AdbcException
-
connectionSetOptionDouble
public void connectionSetOptionDouble(NativeConnectionHandle handle, String key, double value) throws AdbcException - Throws:
AdbcException
-
connectionSetOptionLong
public void connectionSetOptionLong(NativeConnectionHandle handle, String key, long value) throws AdbcException - Throws:
AdbcException
-
connectionSetOptionString
public void connectionSetOptionString(NativeConnectionHandle connection, String key, String value) throws AdbcException - Throws:
AdbcException
-
connectionGetStatistics
public NativeQueryResult connectionGetStatistics(NativeConnectionHandle connection, String catalogPattern, String dbSchemaPattern, String tableNamePattern, boolean approximate) throws AdbcException - Throws:
AdbcException
-
connectionGetStatisticNames
public NativeQueryResult connectionGetStatisticNames(NativeConnectionHandle connection) throws AdbcException - Throws:
AdbcException
-
databaseGetOptionBytes
- Throws:
AdbcException
-
databaseGetOptionDouble
- Throws:
AdbcException
-
databaseGetOptionLong
- Throws:
AdbcException
-
databaseGetOptionString
- Throws:
AdbcException
-
databaseSetOptionBytes
public void databaseSetOptionBytes(NativeDatabaseHandle handle, String key, byte[] value) throws AdbcException - Throws:
AdbcException
-
databaseSetOptionDouble
public void databaseSetOptionDouble(NativeDatabaseHandle handle, String key, double value) throws AdbcException - Throws:
AdbcException
-
databaseSetOptionLong
public void databaseSetOptionLong(NativeDatabaseHandle handle, String key, long value) throws AdbcException - Throws:
AdbcException
-
databaseSetOptionString
public void databaseSetOptionString(NativeDatabaseHandle handle, String key, String value) throws AdbcException - Throws:
AdbcException
-