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-06-25 09:39:17 +00:00
|
|
|
processors = collector.detachProcessors();
|
2020-06-16 14:11:19 +00:00
|
|
|
return pipeline;
|
|
|
|
}
|
|
|
|
|
2020-06-25 09:39:17 +00:00
|
|
|
void ISourceStep::describePipeline(FormatSettings & settings) const
|
|
|
|
{
|
|
|
|
IQueryPlanStep::describePipeline(processors, settings);
|
|
|
|
}
|
|
|
|
|
2020-06-16 14:11:19 +00:00
|
|
|
}
|