Package com.databricks.client.jdbc
Class Driver
- java.lang.Object
-
- com.databricks.client.jdbc.Driver
-
-
Field Summary
Fields Modifier and Type Field Description static JdbcLoggerLOGGER
-
Constructor Summary
Constructors Constructor Description Driver()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanacceptsURL(String url)Connectionconnect(String url, Properties info)static DrivergetInstance()intgetMajorVersion()intgetMinorVersion()LoggergetParentLogger()DriverPropertyInfo[]getPropertyInfo(String url, Properties info)booleanjdbcCompliant()static voidmain(String[] args)static voidsetUserAgent(IDatabricksConnectionContext connectionContext)
-
-
-
Field Detail
-
LOGGER
public static final JdbcLogger LOGGER
-
-
Method Detail
-
main
public static void main(String[] args)
-
setUserAgent
public static void setUserAgent(IDatabricksConnectionContext connectionContext)
-
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)
- Specified by:
getPropertyInfoin interfaceDriver
-
jdbcCompliant
public boolean jdbcCompliant()
- Specified by:
jdbcCompliantin interfaceDriver
-
getParentLogger
public Logger getParentLogger()
- Specified by:
getParentLoggerin interfaceDriver
-
getInstance
public static Driver getInstance()
-
-