Class FlightSqlClientWithCallOptions
java.lang.Object
org.apache.arrow.adbc.driver.flightsql.FlightSqlClientWithCallOptions
- All Implemented Interfaces:
AutoCloseable
A wrapper around FlightSqlClient which automatically adds CallOptions to each RPC call.
-
Constructor Summary
ConstructorDescriptionFlightSqlClientWithCallOptions
(FlightSqlClient client, CallOption... options) -
Method Summary
Modifier and TypeMethodDescriptionbeginSavepoint
(FlightSqlClient.Transaction transaction, String name, CallOption... options) beginTransaction
(CallOption... options) cancelFlightInfo
(CancelFlightInfoRequest request, CallOption... options) cancelQuery
(FlightInfo info, CallOption... options) void
close()
void
commit
(FlightSqlClient.Transaction transaction, CallOption... options) execute
(String query, CallOption... options) execute
(String query, FlightSqlClient.Transaction transaction, CallOption... options) executeSubstrait
(FlightSqlClient.SubstraitPlan plan, CallOption... options) executeSubstrait
(FlightSqlClient.SubstraitPlan plan, FlightSqlClient.Transaction transaction, CallOption... options) long
executeSubstraitUpdate
(FlightSqlClient.SubstraitPlan plan, CallOption... options) long
executeSubstraitUpdate
(FlightSqlClient.SubstraitPlan plan, FlightSqlClient.Transaction transaction, CallOption... options) long
executeUpdate
(String query, CallOption... options) long
executeUpdate
(String query, FlightSqlClient.Transaction transaction, CallOption... options) getCatalogs
(CallOption... options) getCatalogsSchema
(CallOption... options) getCrossReference
(TableRef pkTableRef, TableRef fkTableRef, CallOption... options) getCrossReferenceSchema
(CallOption... options) getExecuteSchema
(String query, CallOption... options) getExecuteSchema
(String query, FlightSqlClient.Transaction transaction, CallOption... options) getExecuteSubstraitSchema
(FlightSqlClient.SubstraitPlan substraitPlan, CallOption... options) getExecuteSubstraitSchema
(FlightSqlClient.SubstraitPlan plan, FlightSqlClient.Transaction transaction, CallOption... options) getExportedKeys
(TableRef tableRef, CallOption... options) getExportedKeysSchema
(CallOption... options) getImportedKeys
(TableRef tableRef, CallOption... options) getImportedKeysSchema
(CallOption... options) getPrimaryKeys
(TableRef tableRef, CallOption... options) getPrimaryKeysSchema
(CallOption... options) getSchema
(FlightDescriptor descriptor, CallOption... options) getSchemas
(String catalog, String dbSchemaFilterPattern, CallOption... options) getSchemasSchema
(CallOption... options) getSqlInfo
(int[] info, CallOption... options) getSqlInfo
(Iterable<Integer> info, CallOption... options) getSqlInfo
(FlightSql.SqlInfo... info) getSqlInfo
(FlightSql.SqlInfo[] info, CallOption... options) getSqlInfoSchema
(CallOption... options) getStream
(Ticket ticket, CallOption... options) getTables
(String catalog, String dbSchemaFilterPattern, String tableFilterPattern, @Nullable List<String> tableTypes, boolean includeSchema, CallOption... options) getTablesSchema
(boolean includeSchema, CallOption... options) getTableTypes
(CallOption... options) getTableTypesSchema
(CallOption... options) getXdbcTypeInfo
(int dataType, CallOption... options) getXdbcTypeInfo
(CallOption... options) getXdbcTypeInfoSchema
(CallOption... options) prepare
(String query, CallOption... options) prepare
(String query, FlightSqlClient.Transaction transaction, CallOption... options) prepare
(FlightSqlClient.SubstraitPlan plan, CallOption... options) prepare
(FlightSqlClient.SubstraitPlan plan, FlightSqlClient.Transaction transaction, CallOption... options) void
release
(FlightSqlClient.Savepoint savepoint, CallOption... options) renewFlightEndpoint
(RenewFlightEndpointRequest request, CallOption... options) void
rollback
(FlightSqlClient.Savepoint savepoint, CallOption... options) void
rollback
(FlightSqlClient.Transaction transaction, CallOption... options)
-
Constructor Details
-
FlightSqlClientWithCallOptions
-
-
Method Details
-
execute
-
execute
public FlightInfo execute(String query, FlightSqlClient.Transaction transaction, CallOption... options) -
executeSubstrait
-
executeSubstrait
public FlightInfo executeSubstrait(FlightSqlClient.SubstraitPlan plan, FlightSqlClient.Transaction transaction, CallOption... options) -
getExecuteSchema
public SchemaResult getExecuteSchema(String query, FlightSqlClient.Transaction transaction, CallOption... options) -
getExecuteSchema
-
getExecuteSubstraitSchema
public SchemaResult getExecuteSubstraitSchema(FlightSqlClient.SubstraitPlan plan, FlightSqlClient.Transaction transaction, CallOption... options) -
getExecuteSubstraitSchema
public SchemaResult getExecuteSubstraitSchema(FlightSqlClient.SubstraitPlan substraitPlan, CallOption... options) -
executeUpdate
-
executeUpdate
public long executeUpdate(String query, FlightSqlClient.Transaction transaction, CallOption... options) -
executeSubstraitUpdate
-
executeSubstraitUpdate
public long executeSubstraitUpdate(FlightSqlClient.SubstraitPlan plan, FlightSqlClient.Transaction transaction, CallOption... options) -
getCatalogs
-
getCatalogsSchema
-
getSchemas
-
getSchemasSchema
-
getSchema
-
getStream
-
getSqlInfo
-
getSqlInfo
-
getSqlInfo
-
getSqlInfo
-
getSqlInfoSchema
-
getXdbcTypeInfo
-
getXdbcTypeInfo
-
getXdbcTypeInfoSchema
-
getTables
public FlightInfo getTables(String catalog, String dbSchemaFilterPattern, String tableFilterPattern, @Nullable List<String> tableTypes, boolean includeSchema, CallOption... options) -
getTablesSchema
-
getPrimaryKeys
-
getPrimaryKeysSchema
-
getExportedKeys
-
getExportedKeysSchema
-
getImportedKeys
-
getImportedKeysSchema
-
getCrossReference
public FlightInfo getCrossReference(TableRef pkTableRef, TableRef fkTableRef, CallOption... options) -
getCrossReferenceSchema
-
getTableTypes
-
getTableTypesSchema
-
prepare
-
prepare
public FlightSqlClient.PreparedStatement prepare(String query, FlightSqlClient.Transaction transaction, CallOption... options) -
prepare
public FlightSqlClient.PreparedStatement prepare(FlightSqlClient.SubstraitPlan plan, CallOption... options) -
prepare
public FlightSqlClient.PreparedStatement prepare(FlightSqlClient.SubstraitPlan plan, FlightSqlClient.Transaction transaction, CallOption... options) -
beginTransaction
-
beginSavepoint
public FlightSqlClient.Savepoint beginSavepoint(FlightSqlClient.Transaction transaction, String name, CallOption... options) -
commit
-
release
-
rollback
-
rollback
-
cancelFlightInfo
public CancelFlightInfoResult cancelFlightInfo(CancelFlightInfoRequest request, CallOption... options) -
cancelQuery
-
renewFlightEndpoint
public FlightEndpoint renewFlightEndpoint(RenewFlightEndpointRequest request, CallOption... options) -
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-