Package org.apache.arrow.driver.jdbc
Class ArrowFlightJdbcDataSource
java.lang.Object
org.apache.arrow.driver.jdbc.ArrowFlightJdbcDataSource
- All Implemented Interfaces:
Wrapper
,CommonDataSource
,DataSource
- Direct Known Subclasses:
ArrowFlightJdbcConnectionPoolDataSource
DataSource
implementation for Arrow Flight JDBC Driver.-
Constructor Summary
ModifierConstructorDescriptionprotected
ArrowFlightJdbcDataSource
(Properties properties, ArrowFlightConnectionConfigImpl config) Instantiates a new DataSource. -
Method Summary
Modifier and TypeMethodDescriptionstatic ArrowFlightJdbcDataSource
createNewDataSource
(Properties properties) Creates a newArrowFlightJdbcDataSource
.protected final ArrowFlightConnectionConfigImpl
Gets theconfig
for thisArrowFlightJdbcDataSource
.getConnection
(String username, String password) int
protected final Properties
getProperties
(String username, String password) Gets a copy of theproperties
for thisArrowFlightJdbcDataSource
with the providedusername
andpassword
.boolean
isWrapperFor
(Class<?> aClass) void
setLoginTimeout
(int timeout) void
setLogWriter
(PrintWriter logWriter) <T> T
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.sql.CommonDataSource
createShardingKeyBuilder
Methods inherited from interface javax.sql.DataSource
createConnectionBuilder
-
Constructor Details
-
ArrowFlightJdbcDataSource
Instantiates a new DataSource.
-
-
Method Details
-
getConfig
Gets theconfig
for thisArrowFlightJdbcDataSource
.- Returns:
- the
ArrowFlightConnectionConfigImpl
.
-
getProperties
Gets a copy of theproperties
for thisArrowFlightJdbcDataSource
with the providedusername
andpassword
.- Returns:
- the
Properties
for this data source.
-
createNewDataSource
Creates a newArrowFlightJdbcDataSource
.- Parameters:
properties
- the properties.- Returns:
- a new data source.
-
getConnection
- Specified by:
getConnection
in interfaceDataSource
- Throws:
SQLException
-
getConnection
- Specified by:
getConnection
in interfaceDataSource
- Throws:
SQLException
-
unwrap
- Specified by:
unwrap
in interfaceWrapper
- Throws:
SQLException
-
isWrapperFor
- Specified by:
isWrapperFor
in interfaceWrapper
-
getLogWriter
- Specified by:
getLogWriter
in interfaceCommonDataSource
- Specified by:
getLogWriter
in interfaceDataSource
-
setLogWriter
- Specified by:
setLogWriter
in interfaceCommonDataSource
- Specified by:
setLogWriter
in interfaceDataSource
-
setLoginTimeout
- Specified by:
setLoginTimeout
in interfaceCommonDataSource
- Specified by:
setLoginTimeout
in interfaceDataSource
- Throws:
SQLException
-
getLoginTimeout
public int getLoginTimeout()- Specified by:
getLoginTimeout
in interfaceCommonDataSource
- Specified by:
getLoginTimeout
in interfaceDataSource
-
getParentLogger
- Specified by:
getParentLogger
in interfaceCommonDataSource
-