mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-12 17:32:32 +00:00
19 lines
383 B
C++
19 lines
383 B
C++
#pragma once
|
|
#include <Processors/ISimpleTransform.h>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
/// Reverse rows in chunk.
|
|
class ReverseTransform : public ISimpleTransform
|
|
{
|
|
public:
|
|
explicit ReverseTransform(const Block & header) : ISimpleTransform(header, header, false) {}
|
|
String getName() const override { return "ReverseTransform"; }
|
|
|
|
protected:
|
|
void transform(Chunk & chunk) override;
|
|
};
|
|
|
|
}
|