Class CalciteFactory

java.lang.Object
org.apache.calcite.jdbc.CalciteFactory
All Implemented Interfaces:
org.apache.calcite.avatica.AvaticaFactory
Direct Known Subclasses:
CalciteJdbc41Factory

public abstract class CalciteFactory extends Object implements org.apache.calcite.avatica.AvaticaFactory
Extension of AvaticaFactory for Calcite.
  • Field Summary

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

    Constructors
    Modifier
    Constructor
    Description
    protected
    CalciteFactory(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)
     
    abstract org.apache.calcite.avatica.AvaticaConnection
    newConnection(org.apache.calcite.avatica.UnregisteredDriver driver, org.apache.calcite.avatica.AvaticaFactory factory, String url, Properties info, @Nullable CalciteSchema rootSchema, @Nullable JavaTypeFactory typeFactory)
    Creates a connection with a root schema.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.calcite.avatica.AvaticaFactory

    newDatabaseMetaData, newPreparedStatement, newResultSet, newResultSetMetaData, newStatement
  • Field Details

    • major

      protected final int major
    • minor

      protected final int minor
  • Constructor Details

    • CalciteFactory

      protected CalciteFactory(int major, int minor)
      Creates a JDBC factory with given major/minor version number.
  • 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)
      Specified by:
      newConnection in interface org.apache.calcite.avatica.AvaticaFactory
    • newConnection

      public abstract org.apache.calcite.avatica.AvaticaConnection newConnection(org.apache.calcite.avatica.UnregisteredDriver driver, org.apache.calcite.avatica.AvaticaFactory factory, String url, Properties info, @Nullable CalciteSchema rootSchema, @Nullable JavaTypeFactory typeFactory)
      Creates a connection with a root schema.