ClickHouse/src/Interpreters/IInterpreter.h
Nikolai Kochetov 5572f6c276 Fix style.
2020-05-28 12:07:40 +03:00

26 lines
662 B
C++

#pragma once
#include <DataStreams/BlockIO.h>
namespace DB
{
/** Interpreters interface for different queries.
*/
class IInterpreter
{
public:
/** For queries that return a result (SELECT and similar), sets in BlockIO a stream from which you can read this result.
* For queries that receive data (INSERT), sets a thread in BlockIO where you can write data.
* For queries that do not require data and return nothing, BlockIO will be empty.
*/
virtual BlockIO execute() = 0;
virtual bool ignoreQuota() const { return false; }
virtual bool ignoreLimits() const { return false; }
virtual ~IInterpreter() = default;
};
}