ClickHouse/dbms/DataStreams/ReverseBlockInputStream.h

22 lines
393 B
C++
Raw Normal View History

#pragma once
2019-04-17 22:58:24 +00:00
#include <DataStreams/IBlockInputStream.h>
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
{
public:
2019-05-05 20:25:49 +00:00
ReverseBlockInputStream(const BlockInputStreamPtr & input);
String getName() const override;
Block getHeader() const override;
protected:
Block readImpl() override;
};
2019-04-27 11:59:08 +00:00
}