org.apache.kylin.jdbc

## 类 Driver

- java.lang.Object
- - org.apache.calcite.avatica.UnregisteredDriver
  - - org.apache.kylin.jdbc.Driver

所有已实现的接口:
  Driver

    public class Driver
    extends org.apache.calcite.avatica.UnregisteredDriver

Kylin JDBC Driver based on Calcite Avatica and Kylin restful API.
Supported versions:

- jdbc 4.0
- jdbc 4.1

Supported Statements:

- `KylinStatementImpl`
- `KylinPrepareStatementImpl`

Supported properties:

- user: username
- password: password
- ssl: true/false

Driver init code sample:

     Driver driver = (Driver) Class.forName("org.apache.kylin.kylin.jdbc.Driver").newInstance();
     Properties info = new Properties();
     info.put("user", "user");
     info.put("password", "password");
     info.put("ssl", true);
     Connection conn = driver.connect("jdbc:kylin://{domain}/{project}", info);

### 嵌套类概要

### 从类继承的嵌套类/接口 org.apache.calcite.avatica.UnregisteredDriver

`org.apache.calcite.avatica.UnregisteredDriver.JdbcVersion`

### 字段概要

字段
`static String` `CONNECT_STRING_PREFIX`

### 从类继承的字段 org.apache.calcite.avatica.UnregisteredDriver

`factory, handler`

### 构造器概要

构造器
构造器和说明
`Driver()`

### 方法概要

方法
`protected org.apache.calcite.avatica.DriverVersion` `createDriverVersion()`
`org.apache.calcite.avatica.Meta` `createMeta(org.apache.calcite.avatica.AvaticaConnection connection)`
`protected String` `getConnectStringPrefix()`
`protected String` `getFactoryClassName(org.apache.calcite.avatica.UnregisteredDriver.JdbcVersion jdbcVersion)`

### 从类继承的方法 org.apache.calcite.avatica.UnregisteredDriver

`acceptsURL, connect, createFactory, createHandler, getConnectionProperties, getDriverVersion, getMajorVersion, getMinorVersion, getParentLogger, getPropertyInfo, instantiateFactory, jdbcCompliant, register`

### 从类继承的方法 java.lang.Object

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

### 字段详细资料

#### CONNECT_STRING_PREFIX

    public static final String CONNECT_STRING_PREFIX

另请参阅:
  常量字段值

### 构造器详细资料

#### Driver

    public Driver()

### 方法详细资料

#### getConnectStringPrefix

    protected String getConnectStringPrefix()

指定者:
  `getConnectStringPrefix` 在类中 `org.apache.calcite.avatica.UnregisteredDriver`

#### createDriverVersion

    protected org.apache.calcite.avatica.DriverVersion createDriverVersion()

指定者:
  `createDriverVersion` 在类中 `org.apache.calcite.avatica.UnregisteredDriver`

#### getFactoryClassName

    protected String getFactoryClassName(org.apache.calcite.avatica.UnregisteredDriver.JdbcVersion jdbcVersion)

覆盖:
  `getFactoryClassName` 在类中 `org.apache.calcite.avatica.UnregisteredDriver`

#### createMeta

    public org.apache.calcite.avatica.Meta createMeta(org.apache.calcite.avatica.AvaticaConnection connection)

指定者:
  `createMeta` 在类中 `org.apache.calcite.avatica.UnregisteredDriver`