Package org.apache.drill.jdbc
Interface DrillConnection
- All Superinterfaces:
AutoCloseable
,Connection
,Wrapper
- All Known Implementing Classes:
DrillConnectionImpl
Drill-specific
Connection
.- See Also:
-
Field Summary
Fields inherited from interface java.sql.Connection
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE
-
Method Summary
Modifier and TypeMethodDescriptionvoid
commit()
Drill: Not supported.boolean
Returns a view onto this connection's configuration properties.int
Drill: Returns zero.int
boolean
isClosed()
boolean
isWrapperFor
(Class<?> iface) void
releaseSavepoint
(Savepoint savepoint) Drill: Not supported.void
rollback()
Drill: Not supported.void
Drill: Not supported.void
setAutoCommit
(boolean autoCommit) void
setNetworkTimeout
(Executor executor, int milliseconds) Drill: Not supported (for non-zero timeout value).Drill: Not supported.setSavepoint
(String name) Drill: Not supported.void
void
setTransactionIsolation
(int level) <T> T
Methods inherited from interface java.sql.Connection
abort, clearWarnings, close, createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStatement, createStatement, createStatement, createStruct, getCatalog, getClientInfo, getClientInfo, getHoldability, getMetaData, getTypeMap, getWarnings, isReadOnly, isValid, nativeSQL, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, setCatalog, setClientInfo, setClientInfo, setHoldability, setReadOnly, setTypeMap
-
Method Details
-
unwrap
Drill: Accepts
DrillConnection.class
.- Specified by:
unwrap
in interfaceWrapper
- Throws:
SQLException
-
isWrapperFor
Drill: Returns true for
DrillConnection.class
.- Specified by:
isWrapperFor
in interfaceWrapper
- Throws:
SQLException
-
setAutoCommit
Drill: Accepts only
true
.- Specified by:
setAutoCommit
in interfaceConnection
- Throws:
SQLFeatureNotSupportedException
- if called withfalse
SQLException
-
getAutoCommit
Drill: Always returns
true
.- Specified by:
getAutoCommit
in interfaceConnection
- Throws:
SQLException
-
commit
Drill: Not supported. Always throwsSQLFeatureNotSupportedException
(orAlreadyClosedSqlException
).- Specified by:
commit
in interfaceConnection
- Throws:
SQLException
-
rollback
Drill: Not supported. Always throwsSQLFeatureNotSupportedException
(orAlreadyClosedSqlException
).- Specified by:
rollback
in interfaceConnection
- Throws:
SQLException
-
isClosed
boolean isClosed()Drill: Does not throw SQLException.
- Specified by:
isClosed
in interfaceConnection
-
setTransactionIsolation
Drill: Accepts only
Connection.TRANSACTION_NONE
.- Specified by:
setTransactionIsolation
in interfaceConnection
- Throws:
SQLFeatureNotSupportedException
- iflevel
is notConnection.TRANSACTION_NONE
.SQLException
-
getTransactionIsolation
Drill: Always returns
Connection.TRANSACTION_NONE
.- Specified by:
getTransactionIsolation
in interfaceConnection
- Throws:
SQLException
-
setSavepoint
Drill: Not supported. Always throwsSQLFeatureNotSupportedException
(orAlreadyClosedSqlException
).- Specified by:
setSavepoint
in interfaceConnection
- Throws:
SQLException
-
setSavepoint
Drill: Not supported. Always throwsSQLFeatureNotSupportedException
(orAlreadyClosedSqlException
).- Specified by:
setSavepoint
in interfaceConnection
- Throws:
SQLException
-
rollback
Drill: Not supported. Always throwsSQLFeatureNotSupportedException
(orAlreadyClosedSqlException
).- Specified by:
rollback
in interfaceConnection
- Throws:
SQLException
-
releaseSavepoint
Drill: Not supported. Always throwsSQLFeatureNotSupportedException
(orAlreadyClosedSqlException
).- Specified by:
releaseSavepoint
in interfaceConnection
- Throws:
SQLException
-
setSchema
- Specified by:
setSchema
in interfaceConnection
- Throws:
SQLException
-
getSchema
- Specified by:
getSchema
in interfaceConnection
- Throws:
SQLException
-
setNetworkTimeout
void setNetworkTimeout(Executor executor, int milliseconds) throws AlreadyClosedSqlException, JdbcApiSqlException, SQLFeatureNotSupportedException Drill: Not supported (for non-zero timeout value).Normally, just throws
SQLFeatureNotSupportedException
unless request is trivially for no timeout (zeromilliseconds
value).- Specified by:
setNetworkTimeout
in interfaceConnection
- Throws:
AlreadyClosedSqlException
- 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)
-
getNetworkTimeout
Drill: Returns zero.- Specified by:
getNetworkTimeout
in interfaceConnection
- Throws:
AlreadyClosedSqlException
- if connection is closed
-
getConfig
DrillConnectionConfig getConfig()Returns a view onto this connection's configuration properties. Code within Optiq should use this view rather than callingProperties.getProperty(String)
. -
getClient
DrillClient getClient()
-