ClickHouse/dbms/src/DataStreams/ReverseBlockInputStream.h
2019-05-05 23:25:49 +03:00

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