aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Processors/Sources/SourceFromChunks.h
blob: b508f206d0c0ae60114bf5e7d6a83cc59dc8bca6 (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
25
26
#pragma once

#include <Processors/Chunk.h>
#include <Processors/ISource.h>


namespace DB
{

/// The big brother of SourceFromSingleChunk.
class SourceFromChunks : public ISource
{
public:
    SourceFromChunks(Block header, Chunks chunks_);

    String getName() const override;

protected:
    Chunk generate() override;

private:
    Chunks chunks;
    Chunks::iterator it;
};

}