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

public class DrillJdbc40Factory extends DrillJdbc41Factory
Implementation of net.hydromatic.avatica.AvaticaFactory for Drill and JDBC 4.0 (corresponds to JDK 1.6).
  • 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 interface org.apache.calcite.avatica.AvaticaFactory
    • getJdbcMinorVersion

      public int getJdbcMinorVersion()
      Specified by:
      getJdbcMinorVersion in interface org.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 interface org.apache.calcite.avatica.AvaticaFactory
      Throws:
      SQLException