public class DrillConnectionImpl extends org.apache.calcite.avatica.AvaticaConnection implements DrillConnection
Connection.driver, factory, handle, HELPER, id, info, maxRetriesPerExecute, meta, metaData, NUM_EXECUTE_RETRIES_DEFAULT, NUM_EXECUTE_RETRIES_KEY, PLAN_COLUMN_NAME, properties, ROWCOUNT_COLUMN_NAME, statementCount, statementMapTRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE| Constructor and Description |
|---|
DrillConnectionImpl(DriverImpl driver,
org.apache.calcite.avatica.AvaticaFactory factory,
String url,
Properties info) |
| Modifier and Type | Method and Description |
|---|---|
void |
abort(Executor executor) |
protected void |
checkOpen()
Throws AlreadyClosedSqlException iff this Connection is closed.
|
void |
commit()
Drill:
Not supported.
|
Blob |
createBlob() |
Clob |
createClob() |
NClob |
createNClob() |
protected ResultSet |
createResultSet(org.apache.calcite.avatica.Meta.MetaResultSet metaResultSet,
org.apache.calcite.avatica.QueryState state) |
SQLXML |
createSQLXML() |
DrillStatementImpl |
createStatement(int resultSetType,
int resultSetConcurrency,
int resultSetHoldability) |
Struct |
createStruct(String typeName,
Object[] attributes) |
DrillClient |
getClient() |
DrillConnectionConfig |
getConfig()
Returns a view onto this connection's configuration properties.
|
protected Drillbit |
getDrillbit() |
int |
getNetworkTimeout()
Drill:
Returns zero.
|
String |
getSchema() |
TimeZone |
getTimeZone() |
Map<String,Class<?>> |
getTypeMap() |
boolean |
isClosed() |
boolean |
isValid(int timeout) |
String |
nativeSQL(String sql) |
protected org.apache.calcite.avatica.Meta.ExecuteResult |
prepareAndExecuteInternal(org.apache.calcite.avatica.AvaticaStatement statement,
String sql,
long maxRowCount) |
CallableStatement |
prepareCall(String sql) |
CallableStatement |
prepareCall(String sql,
int resultSetType,
int resultSetConcurrency) |
CallableStatement |
prepareCall(String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability) |
PreparedStatement |
prepareStatement(String sql,
int autoGeneratedKeys) |
PreparedStatement |
prepareStatement(String sql,
int[] columnIndexes) |
PreparedStatement |
prepareStatement(String sql,
String[] columnNames) |
void |
releaseSavepoint(Savepoint savepoint)
Drill:
Not supported.
|
void |
rollback()
Drill:
Not supported.
|
void |
rollback(Savepoint savepoint)
Drill:
Not supported.
|
void |
setAutoCommit(boolean autoCommit) |
void |
setClientInfo(Properties properties) |
void |
setClientInfo(String name,
String value) |
void |
setNetworkTimeout(Executor executor,
int milliseconds)
Drill:
Not supported (for non-zero timeout value).
|
Savepoint |
setSavepoint()
Drill:
Not supported.
|
Savepoint |
setSavepoint(String name)
Drill:
Not supported.
|
void |
setSchema(String schema) |
void |
setTransactionIsolation(int level) |
void |
setTypeMap(Map<String,Class<?>> map) |
clearWarnings, close, config, createArrayOf, createStatement, createStatement, createTrojan, executeBatchUpdateInternal, executeQueryInternal, getAutoCommit, getCancelFlag, getCatalog, getClientInfo, getClientInfo, getHoldability, getKerberosConnection, getMetaData, getService, getTransactionIsolation, getWarnings, invokeWithRetries, isReadOnly, isWrapperFor, lookupStatement, openConnection, prepareAndUpdateBatch, prepareStatement, prepareStatement, prepareStatement, setCatalog, setHoldability, setKerberosConnection, setReadOnly, setService, unwrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAutoCommit, getTransactionIsolation, isWrapperFor, unwrapclearWarnings, close, createArrayOf, createStatement, createStatement, getCatalog, getClientInfo, getClientInfo, getHoldability, getMetaData, getWarnings, isReadOnly, prepareStatement, prepareStatement, prepareStatement, setCatalog, setHoldability, setReadOnlypublic DrillConnectionImpl(DriverImpl driver, org.apache.calcite.avatica.AvaticaFactory factory, String url, Properties info) throws SQLException
SQLExceptionprotected ResultSet createResultSet(org.apache.calcite.avatica.Meta.MetaResultSet metaResultSet, org.apache.calcite.avatica.QueryState state) throws SQLException
createResultSet in class org.apache.calcite.avatica.AvaticaConnectionSQLExceptionprotected org.apache.calcite.avatica.Meta.ExecuteResult prepareAndExecuteInternal(org.apache.calcite.avatica.AvaticaStatement statement,
String sql,
long maxRowCount)
throws SQLException,
org.apache.calcite.avatica.NoSuchStatementException
prepareAndExecuteInternal in class org.apache.calcite.avatica.AvaticaConnectionSQLExceptionorg.apache.calcite.avatica.NoSuchStatementExceptionprotected void checkOpen()
throws AlreadyClosedSqlException
checkOpen in class org.apache.calcite.avatica.AvaticaConnectionAlreadyClosedSqlException - if Connection is closedpublic DrillConnectionConfig getConfig()
DrillConnectionProperties.getProperty(String).getConfig in interface DrillConnectionpublic DrillClient getClient()
getClient in interface DrillConnectionpublic void setAutoCommit(boolean autoCommit)
throws SQLException
DrillConnection
Drill:
Accepts only true.
setAutoCommit in interface ConnectionsetAutoCommit in interface DrillConnectionsetAutoCommit in class org.apache.calcite.avatica.AvaticaConnectionSQLExceptionpublic void commit()
throws SQLException
DrillConnectionSQLFeatureNotSupportedException (or
AlreadyClosedSqlException).commit in interface Connectioncommit in interface DrillConnectioncommit in class org.apache.calcite.avatica.AvaticaConnectionSQLExceptionpublic void rollback()
throws SQLException
DrillConnectionSQLFeatureNotSupportedException (or
AlreadyClosedSqlException).rollback in interface Connectionrollback in interface DrillConnectionrollback in class org.apache.calcite.avatica.AvaticaConnectionSQLExceptionpublic boolean isClosed()
DrillConnectionDrill: Does not throw SQLException.
isClosed in interface ConnectionisClosed in interface DrillConnectionisClosed in class org.apache.calcite.avatica.AvaticaConnectionpublic Savepoint setSavepoint() throws SQLException
DrillConnectionSQLFeatureNotSupportedException (or
AlreadyClosedSqlException).setSavepoint in interface ConnectionsetSavepoint in interface DrillConnectionsetSavepoint in class org.apache.calcite.avatica.AvaticaConnectionSQLExceptionpublic Savepoint setSavepoint(String name) throws SQLException
DrillConnectionSQLFeatureNotSupportedException (or
AlreadyClosedSqlException).setSavepoint in interface ConnectionsetSavepoint in interface DrillConnectionsetSavepoint in class org.apache.calcite.avatica.AvaticaConnectionSQLExceptionpublic void rollback(Savepoint savepoint) throws SQLException
DrillConnectionSQLFeatureNotSupportedException (or
AlreadyClosedSqlException).rollback in interface Connectionrollback in interface DrillConnectionrollback in class org.apache.calcite.avatica.AvaticaConnectionSQLExceptionpublic void releaseSavepoint(Savepoint savepoint) throws SQLException
DrillConnectionSQLFeatureNotSupportedException (or
AlreadyClosedSqlException).releaseSavepoint in interface ConnectionreleaseSavepoint in interface DrillConnectionreleaseSavepoint in class org.apache.calcite.avatica.AvaticaConnectionSQLExceptionpublic void setTransactionIsolation(int level)
throws SQLException
DrillConnection
Drill:
Accepts only Connection.TRANSACTION_NONE.
setTransactionIsolation in interface ConnectionsetTransactionIsolation in interface DrillConnectionsetTransactionIsolation in class org.apache.calcite.avatica.AvaticaConnectionSQLExceptionpublic void setNetworkTimeout(Executor executor, int milliseconds) throws JdbcApiSqlException, SQLFeatureNotSupportedException
DrillConnection
Normally, just throws SQLFeatureNotSupportedException unless
request is trivially for no timeout (zero milliseconds value).
setNetworkTimeout in interface ConnectionsetNetworkTimeout in interface DrillConnectionsetNetworkTimeout in class org.apache.calcite.avatica.AvaticaConnectionAlreadyClosedSqlException - if connection is closedJdbcApiSqlException - if an invalid parameter value is detected (and not above case)SQLFeatureNotSupportedException - if timeout is non-zero (and not above case)public int getNetworkTimeout()
throws AlreadyClosedSqlException
DrillConnectiongetNetworkTimeout in interface ConnectiongetNetworkTimeout in interface DrillConnectiongetNetworkTimeout in class org.apache.calcite.avatica.AvaticaConnectionAlreadyClosedSqlException - if connection is closedpublic DrillStatementImpl createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException
createStatement in interface ConnectioncreateStatement in class org.apache.calcite.avatica.AvaticaConnectionSQLExceptionpublic TimeZone getTimeZone()
getTimeZone in class org.apache.calcite.avatica.AvaticaConnectionpublic CallableStatement prepareCall(String sql) throws SQLException
prepareCall in interface ConnectionprepareCall in class org.apache.calcite.avatica.AvaticaConnectionSQLExceptionpublic String nativeSQL(String sql) throws SQLException
nativeSQL in interface ConnectionnativeSQL in class org.apache.calcite.avatica.AvaticaConnectionSQLExceptionpublic CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency) throws SQLException
prepareCall in interface ConnectionprepareCall in class org.apache.calcite.avatica.AvaticaConnectionSQLExceptionpublic Map<String,Class<?>> getTypeMap() throws SQLException
getTypeMap in interface ConnectiongetTypeMap in class org.apache.calcite.avatica.AvaticaConnectionSQLExceptionpublic void setTypeMap(Map<String,Class<?>> map) throws SQLException
setTypeMap in interface ConnectionsetTypeMap in class org.apache.calcite.avatica.AvaticaConnectionSQLExceptionpublic CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException
prepareCall in interface ConnectionprepareCall in class org.apache.calcite.avatica.AvaticaConnectionSQLExceptionpublic PreparedStatement prepareStatement(String sql, int autoGeneratedKeys) throws SQLException
prepareStatement in interface ConnectionprepareStatement in class org.apache.calcite.avatica.AvaticaConnectionSQLExceptionpublic PreparedStatement prepareStatement(String sql, int[] columnIndexes) throws SQLException
prepareStatement in interface ConnectionprepareStatement in class org.apache.calcite.avatica.AvaticaConnectionSQLExceptionpublic PreparedStatement prepareStatement(String sql, String[] columnNames) throws SQLException
prepareStatement in interface ConnectionprepareStatement in class org.apache.calcite.avatica.AvaticaConnectionSQLExceptionpublic Clob createClob() throws SQLException
createClob in interface ConnectioncreateClob in class org.apache.calcite.avatica.AvaticaConnectionSQLExceptionpublic Blob createBlob() throws SQLException
createBlob in interface ConnectioncreateBlob in class org.apache.calcite.avatica.AvaticaConnectionSQLExceptionpublic NClob createNClob() throws SQLException
createNClob in interface ConnectioncreateNClob in class org.apache.calcite.avatica.AvaticaConnectionSQLExceptionpublic SQLXML createSQLXML() throws SQLException
createSQLXML in interface ConnectioncreateSQLXML in class org.apache.calcite.avatica.AvaticaConnectionSQLExceptionpublic boolean isValid(int timeout)
throws SQLException
isValid in interface ConnectionisValid in class org.apache.calcite.avatica.AvaticaConnectionSQLExceptionpublic void setClientInfo(String name, String value) throws SQLClientInfoException
setClientInfo in interface ConnectionsetClientInfo in class org.apache.calcite.avatica.AvaticaConnectionSQLClientInfoExceptionpublic void setClientInfo(Properties properties) throws SQLClientInfoException
setClientInfo in interface ConnectionsetClientInfo in class org.apache.calcite.avatica.AvaticaConnectionSQLClientInfoExceptionpublic Struct createStruct(String typeName, Object[] attributes) throws SQLException
createStruct in interface ConnectioncreateStruct in class org.apache.calcite.avatica.AvaticaConnectionSQLExceptionpublic void setSchema(String schema) throws SQLException
setSchema in interface ConnectionsetSchema in interface DrillConnectionsetSchema in class org.apache.calcite.avatica.AvaticaConnectionSQLExceptionpublic String getSchema() throws SQLException
getSchema in interface ConnectiongetSchema in interface DrillConnectiongetSchema in class org.apache.calcite.avatica.AvaticaConnectionSQLExceptionpublic void abort(Executor executor) throws SQLException
abort in interface Connectionabort in class org.apache.calcite.avatica.AvaticaConnectionSQLExceptionprotected Drillbit getDrillbit()
Copyright © 2021 The Apache Software Foundation. All rights reserved.