public class PhysicalConnection extends Object
| 构造器和说明 |
|---|
PhysicalConnection(Socket socket,
BinarySerializer serializer,
BinaryDeserializer deserializer) |
| 限定符和类型 | 方法和说明 |
|---|---|
SocketAddress |
address() |
void |
disPhysicalConnection() |
static PhysicalConnection |
openPhysicalConnection(ClickHouseConfig configure) |
boolean |
ping(int soTimeout,
PhysicalInfo.ServerInfo info) |
EOFStreamResponse |
receiveEndOfStream(int soTimeout,
PhysicalInfo.ServerInfo info) |
HelloResponse |
receiveHello(int soTimeout,
PhysicalInfo.ServerInfo info) |
RequestOrResponse |
receiveResponse(int soTimeout,
PhysicalInfo.ServerInfo info) |
Block |
receiveSampleBlock(int soTimeout,
PhysicalInfo.ServerInfo info) |
void |
sendData(Block data) |
void |
sendHello(String client,
long reversion,
String db,
String user,
String password) |
void |
sendQuery(String query,
QueryRequest.ClientInfo info,
Map<SettingKey,Object> settings) |
public PhysicalConnection(Socket socket, BinarySerializer serializer, BinaryDeserializer deserializer)
public boolean ping(int soTimeout,
PhysicalInfo.ServerInfo info)
public void sendData(Block data) throws SQLException
SQLExceptionpublic void sendQuery(String query, QueryRequest.ClientInfo info, Map<SettingKey,Object> settings) throws SQLException
SQLExceptionpublic void sendHello(String client, long reversion, String db, String user, String password) throws SQLException
SQLExceptionpublic Block receiveSampleBlock(int soTimeout, PhysicalInfo.ServerInfo info) throws SQLException
SQLExceptionpublic HelloResponse receiveHello(int soTimeout, PhysicalInfo.ServerInfo info) throws SQLException
SQLExceptionpublic EOFStreamResponse receiveEndOfStream(int soTimeout, PhysicalInfo.ServerInfo info) throws SQLException
SQLExceptionpublic RequestOrResponse receiveResponse(int soTimeout, PhysicalInfo.ServerInfo info) throws SQLException
SQLExceptionpublic SocketAddress address()
public void disPhysicalConnection()
throws SQLException
SQLExceptionpublic static PhysicalConnection openPhysicalConnection(ClickHouseConfig configure) throws SQLException
SQLExceptionCopyright © 2020. All rights reserved.