1#pragma once
2#include <Processors/ISimpleTransform.h>
3
4namespace DB
5{
6
7class ExpressionActions;
8using ExpressionActionsPtr = std::shared_ptr<ExpressionActions>;
9
10class ExpressionTransform : public ISimpleTransform
11{
12public:
13 ExpressionTransform(const Block & header_, ExpressionActionsPtr expression_, bool on_totals_ = false, bool default_totals_ = false);
14
15 String getName() const override { return "ExpressionTransform"; }
16
17protected:
18 void transform(Chunk & chunk) override;
19
20private:
21 ExpressionActionsPtr expression;
22 bool on_totals;
23 bool default_totals;
24 bool initialized = false;
25};
26
27}
28