public class ClickHouseConnection extends SQLConnection
| 限定符 | 构造器和说明 |
|---|---|
protected |
ClickHouseConnection(ClickHouseConfig configure,
PhysicalInfo info) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
Array |
createArrayOf(String typeName,
Object[] elements) |
static ClickHouseConnection |
createClickHouseConnection(ClickHouseConfig configure) |
Statement |
createStatement() |
Struct |
createStruct(String typeName,
Object[] attributes) |
Block |
getSampleBlock(String insertQuery) |
boolean |
isClosed() |
boolean |
isValid(int timeout) |
PreparedStatement |
prepareStatement(String query) |
PreparedStatement |
prepareStatement(String sql,
int resultSetType,
int resultSetConcurrency) |
Integer |
sendInsertRequest(Block block) |
QueryResponse |
sendQueryRequest(String query) |
void |
setClientInfo(Properties properties) |
void |
setClientInfo(String name,
String value) |
abort, clearWarnings, commit, createBlob, createClob, createNClob, createSQLXML, createStatement, createStatement, getAutoCommit, getCatalog, getClientInfo, getClientInfo, getHoldability, getMetaData, getNetworkTimeout, getSchema, getTransactionIsolation, getTypeMap, getWarnings, isReadOnly, isWrapperFor, nativeSQL, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, rollback, setAutoCommit, setCatalog, setHoldability, setNetworkTimeout, setReadOnly, setSavepoint, setSavepoint, setSchema, setTransactionIsolation, setTypeMap, unwrapprotected ClickHouseConnection(ClickHouseConfig configure, PhysicalInfo info)
public void close()
throws SQLException
close 在接口中 AutoCloseableclose 在接口中 Connectionclose 在类中 SQLConnectionSQLExceptionpublic boolean isClosed()
throws SQLException
isClosed 在接口中 ConnectionisClosed 在类中 SQLConnectionSQLExceptionpublic Statement createStatement() throws SQLException
createStatement 在接口中 ConnectioncreateStatement 在类中 SQLConnectionSQLExceptionpublic PreparedStatement prepareStatement(String query) throws SQLException
prepareStatement 在接口中 ConnectionprepareStatement 在类中 SQLConnectionSQLExceptionpublic PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException
prepareStatement 在接口中 ConnectionprepareStatement 在类中 SQLConnectionSQLExceptionpublic void setClientInfo(Properties properties) throws SQLClientInfoException
setClientInfo 在接口中 ConnectionsetClientInfo 在类中 SQLConnectionSQLClientInfoExceptionpublic void setClientInfo(String name, String value) throws SQLClientInfoException
setClientInfo 在接口中 ConnectionsetClientInfo 在类中 SQLConnectionSQLClientInfoExceptionpublic Array createArrayOf(String typeName, Object[] elements) throws SQLException
createArrayOf 在接口中 ConnectioncreateArrayOf 在类中 SQLConnectionSQLExceptionpublic Struct createStruct(String typeName, Object[] attributes) throws SQLException
createStruct 在接口中 ConnectioncreateStruct 在类中 SQLConnectionSQLExceptionpublic boolean isValid(int timeout)
throws SQLException
isValid 在接口中 ConnectionisValid 在类中 SQLConnectionSQLExceptionpublic Block getSampleBlock(String insertQuery) throws SQLException
SQLExceptionpublic QueryResponse sendQueryRequest(String query) throws SQLException
SQLExceptionpublic Integer sendInsertRequest(Block block) throws SQLException
SQLExceptionpublic static ClickHouseConnection createClickHouseConnection(ClickHouseConfig configure) throws SQLException
SQLExceptionCopyright © 2020. All rights reserved.