Package org.apache.calcite.jdbc
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
-
Constructor Summary
ModifierConstructorDescriptionprotected
CalciteFactory
(int major, int minor) Creates a JDBC factory with given major/minor version number. -
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) 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 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) - Specified by:
newConnection
in interfaceorg.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.
-