mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-12 17:32:32 +00:00
32 lines
965 B
C++
32 lines
965 B
C++
#pragma once
|
|
#include <Processors/QueryPlan/ITransformingStep.h>
|
|
#include <Core/SortDescription.h>
|
|
#include <Core/InterpolateDescription.h>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
/// Implements modifier WITH FILL of ORDER BY clause. See FillingTransform.
|
|
class FillingStep : public ITransformingStep
|
|
{
|
|
public:
|
|
FillingStep(const DataStream & input_stream_, SortDescription sort_description_, InterpolateDescriptionPtr interpolate_description_);
|
|
|
|
String getName() const override { return "Filling"; }
|
|
|
|
void transformPipeline(QueryPipelineBuilder & pipeline, const BuildQueryPipelineSettings &) override;
|
|
|
|
void describeActions(JSONBuilder::JSONMap & map) const override;
|
|
void describeActions(FormatSettings & settings) const override;
|
|
|
|
const SortDescription & getSortDescription() const { return sort_description; }
|
|
|
|
private:
|
|
void updateOutputStream() override;
|
|
|
|
SortDescription sort_description;
|
|
InterpolateDescriptionPtr interpolate_description;
|
|
};
|
|
|
|
}
|