ClickHouse/src/Processors/QueryPlan/ISourceStep.h

25 lines
594 B
C++
Raw Normal View History

2020-06-16 14:11:19 +00:00
#pragma once
#include <Processors/QueryPlan/IQueryPlanStep.h>
namespace DB
{
/// Step which takes empty pipeline and initializes it. Returns single logical DataStream.
2020-06-16 14:11:19 +00:00
class ISourceStep : public IQueryPlanStep
{
public:
explicit ISourceStep(DataStream output_stream_);
QueryPipelinePtr updatePipeline(QueryPipelines pipelines) override;
virtual void initializePipeline(QueryPipeline & pipeline) = 0;
2020-06-25 09:39:17 +00:00
void describePipeline(FormatSettings & settings) const override;
private:
/// We collect processors got after pipeline transformation.
Processors processors;
2020-06-16 14:11:19 +00:00
};
}