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