1#pragma once
2
3#include <DataStreams/IBlockInputStream.h>
4
5namespace DB
6{
7
8/// Reverses an order of rows in every block in a data stream.
9class ReverseBlockInputStream : public IBlockInputStream
10{
11public:
12 ReverseBlockInputStream(const BlockInputStreamPtr & input);
13
14 String getName() const override;
15 Block getHeader() const override;
16
17protected:
18 Block readImpl() override;
19};
20
21}
22