mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-13 09:52:38 +00:00
28 lines
720 B
C++
28 lines
720 B
C++
#pragma once
|
|
#include <Processors/QueryPlan/ITransformingStep.h>
|
|
#include <QueryPipeline/SizeLimits.h>
|
|
#include <Interpreters/Aggregator.h>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
struct AggregatingTransformParams;
|
|
using AggregatingTransformParamsPtr = std::shared_ptr<AggregatingTransformParams>;
|
|
|
|
/// WITH CUBE. See CubeTransform.
|
|
class CubeStep : public ITransformingStep
|
|
{
|
|
public:
|
|
CubeStep(const DataStream & input_stream_, AggregatingTransformParamsPtr params_);
|
|
|
|
String getName() const override { return "Cube"; }
|
|
|
|
void transformPipeline(QueryPipelineBuilder & pipeline, const BuildQueryPipelineSettings &) override;
|
|
|
|
const Aggregator::Params & getParams() const;
|
|
private:
|
|
AggregatingTransformParamsPtr params;
|
|
};
|
|
|
|
}
|