taco-db  0.1.0
OrOperator.h
Go to the documentation of this file.
1 #ifndef EXPR_OROPERATOR_H
2 #define EXPR_OROPERATOR_H
3 
4 #include "expr/ExprNode.h"
5 
6 namespace taco {
7 
8 class OrOperator: public ExprNode {
9 public:
10  static std::unique_ptr<OrOperator>
11  Create(std::unique_ptr<ExprNode>&& left,
12  std::unique_ptr<ExprNode>&& right);
13 
14  ~OrOperator() override;
15 
16  Datum Eval(const std::vector<NullableDatumRef>& record) const override;
17 
18  Datum Eval(const char* record) const override;
19 
20  void node_properties_to_string(std::string &buf, int indent) const override;
21 private:
22  OrOperator(std::unique_ptr<ExprNode>&& left,
23  std::unique_ptr<ExprNode>&& right);
24 };
25 
26 }
27 
28 #endif
A Datum stores and possibly manage the memory resource of a read-only value of a plain fixed-length C...
Definition: datum.h:250
ExprNode is an abstract class of all expressions.
Definition: ExprNode.h:29
Definition: OrOperator.h:8
~OrOperator() override
Definition: OrOperator.cpp:18
static std::unique_ptr< OrOperator > Create(std::unique_ptr< ExprNode > &&left, std::unique_ptr< ExprNode > &&right)
Definition: OrOperator.cpp:21
Datum Eval(const std::vector< NullableDatumRef > &record) const override
Evaluate function upon a deserialized record.
Definition: OrOperator.cpp:28
OrOperator(std::unique_ptr< ExprNode > &&left, std::unique_ptr< ExprNode > &&right)
Definition: OrOperator.cpp:7
void node_properties_to_string(std::string &buf, int indent) const override
Definition: OrOperator.cpp:47
Definition: datum.h:28