ClickHouse/src/Processors/Transforms/ReverseTransform.h
2020-04-03 18:14:31 +03:00

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;
};
}