2020-06-16 14:11:19 +00:00
|
|
|
#include <Processors/QueryPlan/ISourceStep.h>
|
|
|
|
#include <Processors/QueryPipeline.h>
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
|
|
|
ISourceStep::ISourceStep(DataStream output_stream_)
|
|
|
|
{
|
|
|
|
output_stream = std::move(output_stream_);
|
|
|
|
}
|
|
|
|
|
|
|
|
QueryPipelinePtr ISourceStep::updatePipeline(QueryPipelines)
|
|
|
|
{
|
|
|
|
auto pipeline = std::make_unique<QueryPipeline>();
|
2020-06-25 09:39:17 +00:00
|
|
|
QueryPipelineProcessorsCollector collector(*pipeline, this);
|
2020-06-16 14:11:19 +00:00
|
|
|
initializePipeline(*pipeline);
|
2020-09-25 13:19:26 +00:00
|
|
|
auto added_processors = collector.detachProcessors();
|
|
|
|
processors.insert(processors.end(), added_processors.begin(), added_processors.end());
|
2020-06-16 14:11:19 +00:00
|
|
|
return pipeline;
|
|
|
|
}
|
|
|
|
|
2020-12-24 09:09:35 +00:00
|
|
|
void ISourceStep::describePipeline(FormatSettings & settings) const
|
2020-06-25 09:39:17 +00:00
|
|
|
{
|
|
|
|
IQueryPlanStep::describePipeline(processors, settings);
|
|
|
|
}
|
|
|
|
|
2020-06-16 14:11:19 +00:00
|
|
|
}
|