mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 10:52:30 +00:00
32 lines
544 B
C++
32 lines
544 B
C++
#pragma once
|
|
#include <Processors/ISimpleTransform.h>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class ExtremesTransform : public ISimpleTransform
|
|
{
|
|
|
|
public:
|
|
explicit ExtremesTransform(const Block & header);
|
|
|
|
String getName() const override { return "ExtremesTransform"; }
|
|
|
|
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;
|
|
};
|
|
|
|
}
|
|
|