ClickHouse/dbms/src/Processors/Transforms/ExtremsTransform.h

31 lines
534 B
C++
Raw Normal View History

2019-03-26 18:28:37 +00:00
#include <Processors/ISimpleTransform.h>
namespace DB
{
class ExtremesTransform : public ISimpleTransform
{
public:
explicit ExtremesTransform(const Block & header);
String getName() const override { return "ExtremsTransform"; }
OutputPort & getExtremesPort() { return outputs.back(); }
Status prepare() override;
void work() override;
protected:
void transform(Chunk & chunk) override;
bool finished_transform = false;
Chunk extremes;
private:
MutableColumns extremes_columns;
};
}