ClickHouse/src/Processors/QueryPlan/ReadFromPreparedSource.h

24 lines
484 B
C++
Raw Normal View History

2020-06-16 14:11:19 +00:00
#pragma once
#include <Processors/QueryPlan/ISourceStep.h>
#include <Processors/Pipe.h>
namespace DB
{
/// Create source from prepared pipe.
2020-06-16 14:11:19 +00:00
class ReadFromPreparedSource : public ISourceStep
{
public:
explicit ReadFromPreparedSource(Pipe pipe_, std::shared_ptr<Context> context_);
2020-06-16 14:11:19 +00:00
String getName() const override { return "ReadNothing"; }
void initializePipeline(QueryPipeline & pipeline) override;
private:
Pipe pipe;
std::shared_ptr<Context> context;
2020-06-16 14:11:19 +00:00
};
}