ClickHouse/dbms/src/Interpreters/ClusterProxy/executeQuery.h
2017-11-18 05:34:00 +03:00

29 lines
648 B
C++

#pragma once
#include <Parsers/IAST.h>
#include <Storages/IStorage.h>
#include <Interpreters/Cluster.h>
namespace DB
{
struct Settings;
class Context;
class Cluster;
namespace ClusterProxy
{
class IStreamFactory;
/// Execute a distributed query, creating a vector of BlockInputStreams, from which the result can be read.
/// `stream_factory` object encapsulates the logic of creating streams for a different type of query
/// (currently SELECT, DESCRIBE).
BlockInputStreams executeQuery(
IStreamFactory & stream_factory, const ClusterPtr & cluster,
const ASTPtr & query_ast, const Context & context, const Settings & settings);
}
}