2019-04-17 21:20:51 +00:00
|
|
|
#pragma once
|
|
|
|
|
2019-04-17 22:58:24 +00:00
|
|
|
#include <DataStreams/IBlockInputStream.h>
|
2019-04-17 21:20:51 +00:00
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
2019-05-05 20:25:49 +00:00
|
|
|
/// Reverses an order of rows in every block in a data stream.
|
2019-04-17 22:58:24 +00:00
|
|
|
class ReverseBlockInputStream : public IBlockInputStream
|
2019-04-17 21:20:51 +00:00
|
|
|
{
|
|
|
|
public:
|
2019-05-05 20:25:49 +00:00
|
|
|
ReverseBlockInputStream(const BlockInputStreamPtr & input);
|
2019-04-17 21:20:51 +00:00
|
|
|
|
|
|
|
String getName() const override;
|
|
|
|
Block getHeader() const override;
|
|
|
|
|
|
|
|
protected:
|
|
|
|
Block readImpl() override;
|
|
|
|
};
|
|
|
|
|
2019-04-27 11:59:08 +00:00
|
|
|
}
|