public class NativeClient extends Object
| Constructor and Description |
|---|
NativeClient(Socket socket,
BinarySerializer serializer,
BinaryDeserializer deserializer) |
| Modifier and Type | Method and Description |
|---|---|
SocketAddress |
address() |
static NativeClient |
connect(ClickHouseConfig configure) |
void |
disconnect() |
boolean |
ping(Duration soTimeout,
NativeContext.ServerContext info) |
EOFStreamResponse |
receiveEndOfStream(Duration soTimeout,
NativeContext.ServerContext info) |
HelloResponse |
receiveHello(Duration soTimeout,
NativeContext.ServerContext info) |
QueryResult |
receiveQuery(Duration soTimeout,
NativeContext.ServerContext info) |
Block |
receiveSampleBlock(Duration soTimeout,
NativeContext.ServerContext info) |
void |
sendData(Block data) |
void |
sendHello(String client,
long reversion,
String db,
String user,
String password) |
void |
sendQuery(String query,
NativeContext.ClientContext info,
Map<SettingKey,Serializable> settings) |
void |
silentDisconnect() |
public NativeClient(Socket socket, BinarySerializer serializer, BinaryDeserializer deserializer)
public static NativeClient connect(ClickHouseConfig configure) throws SQLException
SQLExceptionpublic SocketAddress address()
public boolean ping(Duration soTimeout, NativeContext.ServerContext info)
public Block receiveSampleBlock(Duration soTimeout, NativeContext.ServerContext info) throws SQLException
SQLExceptionpublic void sendHello(String client, long reversion, String db, String user, String password) throws SQLException
SQLExceptionpublic void sendQuery(String query, NativeContext.ClientContext info, Map<SettingKey,Serializable> settings) throws SQLException
SQLExceptionpublic void sendData(Block data) throws SQLException
SQLExceptionpublic HelloResponse receiveHello(Duration soTimeout, NativeContext.ServerContext info) throws SQLException
SQLExceptionpublic EOFStreamResponse receiveEndOfStream(Duration soTimeout, NativeContext.ServerContext info) throws SQLException
SQLExceptionpublic QueryResult receiveQuery(Duration soTimeout, NativeContext.ServerContext info)
public void silentDisconnect()
public void disconnect()
throws SQLException
SQLExceptionCopyright © 2021. All rights reserved.