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