blob: 8c3f6348d48852768395ecf8e4db60b468461ee8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#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;
};
}
|