mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-01 12:01:58 +00:00
22 lines
393 B
C++
22 lines
393 B
C++
#pragma once
|
|
|
|
#include <DataStreams/IBlockInputStream.h>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
/// Reverses an order of rows in every block in a data stream.
|
|
class ReverseBlockInputStream : public IBlockInputStream
|
|
{
|
|
public:
|
|
ReverseBlockInputStream(const BlockInputStreamPtr & input);
|
|
|
|
String getName() const override;
|
|
Block getHeader() const override;
|
|
|
|
protected:
|
|
Block readImpl() override;
|
|
};
|
|
|
|
}
|