mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-19 06:01:57 +00:00
31 lines
534 B
C++
31 lines
534 B
C++
|
#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;
|
||
|
};
|
||
|
|
||
|
}
|
||
|
|