1#pragma once
2#include <Processors/ISource.h>
3
4
5namespace DB
6{
7
8class SourceFromSingleChunk : public ISource
9{
10public:
11 explicit SourceFromSingleChunk(Block header, Chunk chunk_) : ISource(std::move(header)), chunk(std::move(chunk_)) {}
12 String getName() const override { return "SourceFromSingleChunk"; }
13
14protected:
15 Chunk generate() override { return std::move(chunk); }
16
17private:
18 Chunk chunk;
19};
20
21}
22