Package org.apache.drill.jdbc.impl
Class DrillJdbc40Factory
java.lang.Object
org.apache.drill.jdbc.impl.DrillJdbc41Factory
org.apache.drill.jdbc.impl.DrillJdbc40Factory
- All Implemented Interfaces:
org.apache.calcite.avatica.AvaticaFactory
Implementation of
net.hydromatic.avatica.AvaticaFactory
for Drill and JDBC 4.0 (corresponds to JDK 1.6).-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
int
final org.apache.calcite.avatica.AvaticaConnection
newConnection
(org.apache.calcite.avatica.UnregisteredDriver driver, org.apache.calcite.avatica.AvaticaFactory factory, String url, Properties info) Creates a Drill connection for Avatica (in terms of Avatica types).Methods inherited from class org.apache.drill.jdbc.impl.DrillJdbc41Factory
newDatabaseMetaData, newPreparedStatement, newResultSet, newResultSetMetaData, newStatement
-
Field Details
-
major
protected final int major -
minor
protected final int minor
-
-
Constructor Details
-
DrillJdbc40Factory
public DrillJdbc40Factory()Creates a factory for JDBC version 4.1.
-
-
Method Details
-
getJdbcMajorVersion
public int getJdbcMajorVersion()- Specified by:
getJdbcMajorVersion
in interfaceorg.apache.calcite.avatica.AvaticaFactory
-
getJdbcMinorVersion
public int getJdbcMinorVersion()- Specified by:
getJdbcMinorVersion
in interfaceorg.apache.calcite.avatica.AvaticaFactory
-
newConnection
public final org.apache.calcite.avatica.AvaticaConnection newConnection(org.apache.calcite.avatica.UnregisteredDriver driver, org.apache.calcite.avatica.AvaticaFactory factory, String url, Properties info) throws SQLException Creates a Drill connection for Avatica (in terms of Avatica types).This implementation delegates to
newDrillConnection(DriverImpl, DrillFactory, String, Properties)
.- Specified by:
newConnection
in interfaceorg.apache.calcite.avatica.AvaticaFactory
- Throws:
SQLException
-