mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 13:42:02 +00:00
36 lines
907 B
C
36 lines
907 B
C
|
#pragma once
|
||
|
|
||
|
#include <DB/Interpreters/Cluster.h>
|
||
|
#include <DB/Parsers/IAST.h>
|
||
|
#include <DB/Storages/IStorage.h>
|
||
|
#include <DB/Client/ConnectionPool.h>
|
||
|
|
||
|
namespace DB
|
||
|
{
|
||
|
|
||
|
class Settings;
|
||
|
class Context;
|
||
|
class Cluster;
|
||
|
class IInterpreter;
|
||
|
class RemoteBlockInputStream;
|
||
|
class Throttler;
|
||
|
|
||
|
namespace ClusterProxy
|
||
|
{
|
||
|
|
||
|
class IQueryConstructor
|
||
|
{
|
||
|
public:
|
||
|
virtual ~IQueryConstructor() {}
|
||
|
virtual BlockInputStreamPtr createLocal(ASTPtr query_ast, const Context & context, const Cluster::Address & address) = 0;
|
||
|
virtual BlockInputStreamPtr createRemote(IConnectionPool * pool, const std::string & query,
|
||
|
const Settings & settings, ThrottlerPtr throttler, const Context & context) = 0;
|
||
|
virtual BlockInputStreamPtr createRemote(ConnectionPoolsPtr & pools, const std::string & query,
|
||
|
const Settings & new_settings, ThrottlerPtr throttler, const Context & context) = 0;
|
||
|
virtual bool isInclusive() const = 0;
|
||
|
};
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|