1 | #pragma once |
---|---|
2 | #include <Processors/ISimpleTransform.h> |
3 | |
4 | namespace DB |
5 | { |
6 | |
7 | /// Reverse rows in chunk. |
8 | class ReverseTransform : public ISimpleTransform |
9 | { |
10 | public: |
11 | explicit ReverseTransform(const Block & header) : ISimpleTransform(header, header, false) {} |
12 | String getName() const override { return "ReverseTransform"; } |
13 | |
14 | protected: |
15 | void transform(Chunk & chunk) override; |
16 | }; |
17 | |
18 | } |
19 |