ClickHouse/src/Processors/Transforms/ExtremesTransform.h

31 lines
531 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);
2019-04-05 11:34:11 +00:00
String getName() const override { return "ExtremesTransform"; }
2019-03-26 18:28:37 +00:00
OutputPort & getExtremesPort() { return outputs.back(); }
Status prepare() override;
void work() override;
protected:
void transform(Chunk & chunk) override;
bool finished_transform = false;
Chunk extremes;
2019-04-05 11:34:11 +00:00
2019-03-26 18:28:37 +00:00
private:
MutableColumns extremes_columns;
};
}