blob: c2357049cc1aff28bf04e07186c0eb47479f4de8 (
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
27
28
29
|
#pragma once
#include <Processors/ISimpleTransform.h>
#include <Interpreters/Cache/QueryCache.h>
namespace DB
{
class StreamInQueryCacheTransform : public ISimpleTransform
{
public:
StreamInQueryCacheTransform(
const Block & header_,
std::shared_ptr<QueryCache::Writer> query_cache_writer,
QueryCache::Writer::ChunkType chunk_type);
protected:
void transform(Chunk & chunk) override;
public:
void finalizeWriteInQueryCache();
String getName() const override { return "StreamInQueryCacheTransform"; }
private:
const std::shared_ptr<QueryCache::Writer> query_cache_writer;
const QueryCache::Writer::ChunkType chunk_type;
};
}
|