public class ClickhouseProxy extends Object
| 构造器和说明 |
|---|
ClickhouseProxy(com.clickhouse.client.ClickHouseNode node) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
com.clickhouse.client.ClickHouseRequest<?> |
getClickhouseConnection() |
com.clickhouse.client.ClickHouseRequest<?> |
getClickhouseConnection(Shard shard) |
DistributedEngine |
getClickhouseDistributedTable(com.clickhouse.client.ClickHouseRequest<?> connection,
String database,
String table) |
ClickhouseTable |
getClickhouseTable(String database,
String table)
Get ClickHouse table info.
|
Map<String,String> |
getClickhouseTableSchema(com.clickhouse.client.ClickHouseRequest<?> request,
String table) |
Map<String,String> |
getClickhouseTableSchema(String table)
Get ClickHouse table schema, the key is fileName, value is value type.
|
List<Shard> |
getClusterShardList(com.clickhouse.client.ClickHouseRequest<?> connection,
String clusterName,
String database,
int port,
String username,
String password)
Get the shard of the given cluster.
|
String |
localizationEngine(String engine,
String ddl)
Localization the engine in clickhouse local table's createTableDDL to support specific
engine.
|
public com.clickhouse.client.ClickHouseRequest<?> getClickhouseConnection()
public com.clickhouse.client.ClickHouseRequest<?> getClickhouseConnection(Shard shard)
public DistributedEngine getClickhouseDistributedTable(com.clickhouse.client.ClickHouseRequest<?> connection, String database, String table)
public Map<String,String> getClickhouseTableSchema(String table)
table - table name.public Map<String,String> getClickhouseTableSchema(com.clickhouse.client.ClickHouseRequest<?> request, String table)
public List<Shard> getClusterShardList(com.clickhouse.client.ClickHouseRequest<?> connection, String clusterName, String database, int port, String username, String password)
connection - clickhouse connection.clusterName - cluster name.database - database of the shard.port - port of the shard.public ClickhouseTable getClickhouseTable(String database, String table)
database - database of the table.table - table name of the table.public String localizationEngine(String engine, String ddl)
engine - original engine of clickhouse local tableddl - createTableDDL of clickhouse local tablepublic void close()
Copyright © 2024 The Apache Software Foundation. All rights reserved.