Package org.apache.drill.jdbc
Class Driver
java.lang.Object
org.apache.drill.jdbc.Driver
- All Implemented Interfaces:
Driver
Main class of Apache Drill JDBC driver.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
acceptsURL
(String url) connect
(String url, Properties info) int
int
getPropertyInfo
(String url, Properties info) boolean
static boolean
load()
Ensures that class is loaded.
-
Constructor Details
-
Driver
public Driver()
-
-
Method Details
-
load
public static boolean load()Ensures that class is loaded.(Avoids extra instance of calling
new Driver();
; avoids verbosity ofClass.forName("org.apache.drill.jdbc.Driver");
.) -
connect
- Specified by:
connect
in interfaceDriver
- Throws:
SQLException
-
acceptsURL
- Specified by:
acceptsURL
in interfaceDriver
- Throws:
SQLException
-
getPropertyInfo
- Specified by:
getPropertyInfo
in interfaceDriver
- Throws:
SQLException
-
getMajorVersion
public int getMajorVersion()- Specified by:
getMajorVersion
in interfaceDriver
-
getMinorVersion
public int getMinorVersion()- Specified by:
getMinorVersion
in interfaceDriver
-
jdbcCompliant
public boolean jdbcCompliant()- Specified by:
jdbcCompliant
in interfaceDriver
-
getParentLogger
- Specified by:
getParentLogger
in interfaceDriver
-