Class DrillJdbc41Factory

java.lang.Object
org.apache.drill.jdbc.impl.DrillJdbc41Factory
All Implemented Interfaces:
org.apache.calcite.avatica.AvaticaFactory
Direct Known Subclasses:
DrillJdbc40Factory

public class DrillJdbc41Factory extends Object
Implementation of AvaticaFactory for Drill and JDBC 4.1 (corresponds to JDK 1.7).
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final int
     
    protected final int
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
    Creates a factory for JDBC version 4.1.
    protected
    DrillJdbc41Factory(int major, int minor)
    Creates a JDBC factory with given major/minor version number.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    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).
    newDatabaseMetaData(org.apache.calcite.avatica.AvaticaConnection connection)
     
    org.apache.drill.jdbc.impl.DrillJdbc41Factory.DrillJdbc41PreparedStatement
    newPreparedStatement(org.apache.calcite.avatica.AvaticaConnection connection, org.apache.calcite.avatica.Meta.StatementHandle h, org.apache.calcite.avatica.Meta.Signature signature, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
     
    newResultSet(org.apache.calcite.avatica.AvaticaStatement statement, org.apache.calcite.avatica.QueryState state, org.apache.calcite.avatica.Meta.Signature signature, TimeZone timeZone, org.apache.calcite.avatica.Meta.Frame firstFrame)
     
    newResultSetMetaData(org.apache.calcite.avatica.AvaticaStatement statement, org.apache.calcite.avatica.Meta.Signature signature)
     
    newStatement(org.apache.calcite.avatica.AvaticaConnection connection, org.apache.calcite.avatica.Meta.StatementHandle h, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • major

      protected final int major
    • minor

      protected final int minor
  • Constructor Details

    • DrillJdbc41Factory

      public DrillJdbc41Factory()
      Creates a factory for JDBC version 4.1.
    • DrillJdbc41Factory

      protected DrillJdbc41Factory(int major, int minor)
      Creates a JDBC factory with given major/minor version number.
  • Method Details

    • newDatabaseMetaData

      public DrillDatabaseMetaDataImpl newDatabaseMetaData(org.apache.calcite.avatica.AvaticaConnection connection)
    • newStatement

      public DrillStatementImpl newStatement(org.apache.calcite.avatica.AvaticaConnection connection, org.apache.calcite.avatica.Meta.StatementHandle h, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
    • newPreparedStatement

      public org.apache.drill.jdbc.impl.DrillJdbc41Factory.DrillJdbc41PreparedStatement newPreparedStatement(org.apache.calcite.avatica.AvaticaConnection connection, org.apache.calcite.avatica.Meta.StatementHandle h, org.apache.calcite.avatica.Meta.Signature signature, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException
      Throws:
      SQLException
    • newResultSet

      public DrillResultSetImpl newResultSet(org.apache.calcite.avatica.AvaticaStatement statement, org.apache.calcite.avatica.QueryState state, org.apache.calcite.avatica.Meta.Signature signature, TimeZone timeZone, org.apache.calcite.avatica.Meta.Frame firstFrame) throws SQLException
      Throws:
      SQLException
    • newResultSetMetaData

      public ResultSetMetaData newResultSetMetaData(org.apache.calcite.avatica.AvaticaStatement statement, org.apache.calcite.avatica.Meta.Signature signature)
    • 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