#pragma once #include #include #include namespace DB { class ReadFromStreamLikeEngine : public ISourceStep, protected WithContext { public: ReadFromStreamLikeEngine( const Names & column_names_, const StorageSnapshotPtr & storage_snapshot_, std::shared_ptr storage_limits_, ContextPtr context_); void initializePipeline(QueryPipelineBuilder & pipeline, const BuildQueryPipelineSettings & /*settings*/) final; protected: virtual Pipe makePipe() = 0; std::shared_ptr storage_limits; }; }