blob: fa6fa3856b57462dba09191fa275514212938e31 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#pragma once
#include <Processors/ISource.h>
namespace DB
{
class SourceFromSingleChunk : public ISource
{
/// If the source consists of multiple chunks you can instead use SourceFromChunks.
public:
SourceFromSingleChunk(Block header, Chunk chunk_);
explicit SourceFromSingleChunk(Block data);
String getName() const override;
protected:
Chunk generate() override;
private:
Chunk chunk;
};
}
|