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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanacceptsURL(String url) connect(String url, Properties info) intintgetPropertyInfo(String url, Properties info) booleanstatic booleanload()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:
connectin interfaceDriver- Throws:
SQLException
-
acceptsURL
- Specified by:
acceptsURLin interfaceDriver- Throws:
SQLException
-
getPropertyInfo
- Specified by:
getPropertyInfoin interfaceDriver- Throws:
SQLException
-
getMajorVersion
public int getMajorVersion()- Specified by:
getMajorVersionin interfaceDriver
-
getMinorVersion
public int getMinorVersion()- Specified by:
getMinorVersionin interfaceDriver
-
jdbcCompliant
public boolean jdbcCompliant()- Specified by:
jdbcCompliantin interfaceDriver
-
getParentLogger
- Specified by:
getParentLoggerin interfaceDriver
-