Package org.apache.calcite.jdbc
Class Driver
java.lang.Object
org.apache.calcite.avatica.UnregisteredDriver
org.apache.calcite.jdbc.Driver
- All Implemented Interfaces:
- Driver
- Direct Known Subclasses:
- SplunkDriver
public class Driver
extends org.apache.calcite.avatica.UnregisteredDriver
Calcite JDBC driver.
- 
Nested Class SummaryNested classes/interfaces inherited from class org.apache.calcite.avatica.UnregisteredDriverorg.apache.calcite.avatica.UnregisteredDriver.JdbcVersion
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final Stringprotected final @Nullable Supplier<CalcitePrepare>Fields inherited from class org.apache.calcite.avatica.UnregisteredDriverfactory, handler
- 
Constructor SummaryConstructorsModifierConstructorDescriptionDriver()Creates a Driver.protectedDriver(@Nullable Supplier<CalcitePrepare> prepareFactory) Creates a Driver with a factory forCalcitePrepareobjects; if the factory is null, the driver will callCalcitePrepare.DEFAULT_FACTORY.
- 
Method SummaryModifier and TypeMethodDescriptionprotected org.apache.calcite.avatica.DriverVersionprotected org.apache.calcite.avatica.Handlerorg.apache.calcite.avatica.MetacreateMeta(org.apache.calcite.avatica.AvaticaConnection connection) Creates aCalcitePrepareto be used to prepare a statement for execution.protected Function0<CalcitePrepare>Deprecated.protected Collection<org.apache.calcite.avatica.ConnectionProperty>protected Stringprotected StringgetFactoryClassName(org.apache.calcite.avatica.UnregisteredDriver.JdbcVersion jdbcVersion) withPrepareFactory(Supplier<CalcitePrepare> prepareFactory) Creates a copy of this Driver with a new factory for creatingCalcitePrepare.Methods inherited from class org.apache.calcite.avatica.UnregisteredDriveracceptsURL, connect, createFactory, getDriverVersion, getMajorVersion, getMinorVersion, getParentLogger, getPropertyInfo, instantiateFactory, jdbcCompliant, register
- 
Field Details- 
CONNECT_STRING_PREFIX- See Also:
 
- 
prepareFactory
 
- 
- 
Constructor Details- 
Driverpublic Driver()Creates a Driver.
- 
DriverCreates a Driver with a factory forCalcitePrepareobjects; if the factory is null, the driver will callCalcitePrepare.DEFAULT_FACTORY.
 
- 
- 
Method Details- 
withPrepareFactoryCreates a copy of this Driver with a new factory for creatingCalcitePrepare.Allows users of the Driver to change the factory without subclassing the Driver. But subclasses of the driver should override this method to create an instance of their subclass. - Parameters:
- prepareFactory- Supplier of a- CalcitePrepare
- Returns:
- Driver with the provided prepareFactory
 
- 
createPrepareCreates aCalcitePrepareto be used to prepare a statement for execution.If you wish to use a custom prepare, either override this method or call withPrepareFactory(Supplier).
- 
createPrepareFactoryDeprecated.Returns a factory with which to create aCalcitePrepare.Now deprecated; if you wish to use a custom prepare, please call withPrepareFactory(Supplier)or overridecreatePrepare().
- 
getConnectStringPrefix- Specified by:
- getConnectStringPrefixin class- org.apache.calcite.avatica.UnregisteredDriver
 
- 
getFactoryClassNameprotected String getFactoryClassName(org.apache.calcite.avatica.UnregisteredDriver.JdbcVersion jdbcVersion) - Overrides:
- getFactoryClassNamein class- org.apache.calcite.avatica.UnregisteredDriver
 
- 
createDriverVersionprotected org.apache.calcite.avatica.DriverVersion createDriverVersion()- Specified by:
- createDriverVersionin class- org.apache.calcite.avatica.UnregisteredDriver
 
- 
createHandlerprotected org.apache.calcite.avatica.Handler createHandler()- Overrides:
- createHandlerin class- org.apache.calcite.avatica.UnregisteredDriver
 
- 
getConnectionProperties- Overrides:
- getConnectionPropertiesin class- org.apache.calcite.avatica.UnregisteredDriver
 
- 
createMetapublic org.apache.calcite.avatica.Meta createMeta(org.apache.calcite.avatica.AvaticaConnection connection) - Specified by:
- createMetain class- org.apache.calcite.avatica.UnregisteredDriver
 
 
-