1 | //===----------------------------------------------------------------------===// |
---|---|
2 | // DuckDB |
3 | // |
4 | // duckdb/planner/expression/bound_constant_expression.hpp |
5 | // |
6 | // |
7 | //===----------------------------------------------------------------------===// |
8 | |
9 | #pragma once |
10 | |
11 | #include "duckdb/common/types/value.hpp" |
12 | #include "duckdb/planner/expression.hpp" |
13 | |
14 | namespace duckdb { |
15 | |
16 | class BoundConstantExpression : public Expression { |
17 | public: |
18 | static constexpr const ExpressionClass TYPE = ExpressionClass::BOUND_CONSTANT; |
19 | |
20 | public: |
21 | explicit BoundConstantExpression(Value value); |
22 | |
23 | Value value; |
24 | |
25 | public: |
26 | string ToString() const override; |
27 | |
28 | bool Equals(const BaseExpression &other) const override; |
29 | hash_t Hash() const override; |
30 | |
31 | unique_ptr<Expression> Copy() override; |
32 | |
33 | void Serialize(FieldWriter &writer) const override; |
34 | static unique_ptr<Expression> Deserialize(ExpressionDeserializationState &state, FieldReader &reader); |
35 | }; |
36 | } // namespace duckdb |
37 |