ClickHouse/dbms/src/Interpreters/InterpreterFactory.h

25 lines
391 B
C++
Raw Normal View History

2015-06-18 02:11:05 +00:00
#pragma once
#include <Core/QueryProcessingStage.h>
#include <Interpreters/IInterpreter.h>
2015-06-18 02:11:05 +00:00
namespace DB
{
2016-12-12 07:24:56 +00:00
class Context;
class IAST;
using ASTPtr = std::shared_ptr<IAST>;
2016-12-12 07:24:56 +00:00
2015-06-18 02:11:05 +00:00
class InterpreterFactory
{
public:
static std::unique_ptr<IInterpreter> get(
ASTPtr & query,
Context & context,
QueryProcessingStage::Enum stage = QueryProcessingStage::Complete);
2015-06-18 02:11:05 +00:00
};
}