-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAppend.h
45 lines (36 loc) · 1.17 KB
/
Append.h
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
38
39
40
41
42
43
44
45
#pragma once
#include "../Definitions.h"
#include "Operator.h"
namespace Operator
{
class _Append : public _TransformingOperator
{
public:
_Append(std::shared_ptr<_Datatype> newDatatype, std::string initializationValue)
: _newDatatype(newDatatype)
, _initializationValue(initializationValue)
{}
std::string getCode() override;
std::shared_ptr<_Schema> getOutputSchema() override;
std::set<std::string> getHeaders() override;
using BaseType = _TransformingOperator;
private:
std::shared_ptr<_Datatype> _newDatatype;
std::string _initializationValue;
};
DECLARE_SHARED_PTR(Append);
class _AppendTimestamp : public _TransformingOperator
{
public:
_AppendTimestamp(std::shared_ptr<_Datatype> timestamp)
: _timestamp(timestamp)
{}
std::string getCode() override;
std::shared_ptr<_Schema> getOutputSchema() override;
std::set<std::string> getHeaders() override;
using BaseType = _TransformingOperator;
private:
std::shared_ptr<_Datatype> _timestamp;
};
DECLARE_SHARED_PTR(AppendTimestamp);
}