blob: 5f17ca761fb56d36957a9bde041863b7616c118c (
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
30
31
32
33
34
35
36
37
|
#pragma once
#include <Processors/ISimpleTransform.h>
namespace DB
{
class StorageWindowView;
class WatermarkTransform : public ISimpleTransform
{
public:
WatermarkTransform(
const Block & header_,
StorageWindowView & storage_,
const String & window_column_name_,
UInt32 lateness_upper_bound_);
String getName() const override { return "WatermarkTransform"; }
~WatermarkTransform() override;
protected:
void transform(Chunk & chunk) override;
Block block_header;
StorageWindowView & storage;
String window_column_name;
UInt32 lateness_upper_bound = 0;
UInt32 max_watermark = 0;
std::set<UInt32> late_signals;
};
}
|