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