Package com.databricks.client.jdbc
Class Driver
- java.lang.Object
-
- com.databricks.client.jdbc.Driver
-
- All Implemented Interfaces:
IDatabricksDriver,Driver
public class Driver extends Object implements IDatabricksDriver
Databricks JDBC driver.
-
-
Constructor Summary
Constructors Constructor Description Driver()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanacceptsURL(String url)voidcloseConnection(String url, Properties info, String connectionId)Closes a connection for given connection-IdConnectionconnect(String url, Properties info)static DrivergetInstance()intgetMajorVersion()intgetMinorVersion()LoggergetParentLogger()DriverPropertyInfo[]getPropertyInfo(String url, Properties info)booleanjdbcCompliant()static voidmain(String[] args)
-
-
-
Method Detail
-
main
public static void main(String[] args)
-
acceptsURL
public boolean acceptsURL(String url)
- Specified by:
acceptsURLin interfaceDriver
-
connect
public Connection connect(String url, Properties info) throws DatabricksSQLException
- Specified by:
connectin interfaceDriver- Throws:
DatabricksSQLException
-
getMajorVersion
public int getMajorVersion()
- Specified by:
getMajorVersionin interfaceDriver
-
getMinorVersion
public int getMinorVersion()
- Specified by:
getMinorVersionin interfaceDriver
-
getPropertyInfo
public DriverPropertyInfo[] getPropertyInfo(String url, Properties info) throws DatabricksSQLException
- Specified by:
getPropertyInfoin interfaceDriver- Throws:
DatabricksSQLException
-
jdbcCompliant
public boolean jdbcCompliant()
- Specified by:
jdbcCompliantin interfaceDriver
-
getParentLogger
public Logger getParentLogger()
- Specified by:
getParentLoggerin interfaceDriver
-
getInstance
public static Driver getInstance()
-
closeConnection
public void closeConnection(String url, Properties info, String connectionId) throws SQLException
Description copied from interface:IDatabricksDriverCloses a connection for given connection-Id- Specified by:
closeConnectionin interfaceIDatabricksDriver- Throws:
SQLException
-
-