taco-db  0.1.0
AndOperator.h
Go to the documentation of this file.
1 #ifndef EXPR_ANDOPERATOR_H
2 #define EXPR_ANDOPERATOR_H
3 
4 #include "expr/ExprNode.h"
5 
6 namespace taco {
7 
8 class AndOperator: public ExprNode {
9 public:
10  static std::unique_ptr<AndOperator>
11  Create(std::unique_ptr<ExprNode>&& left, std::unique_ptr<ExprNode>&& right);
12 
13  ~AndOperator() override {}
14 
15  Datum Eval(const std::vector<NullableDatumRef>& record) const override;
16 
17  Datum Eval(const char* record) const override;
18 
19  void node_properties_to_string(std::string &buf, int indent) const override;
20 
21 private:
22  AndOperator(std::unique_ptr<ExprNode>&& left,
23  std::unique_ptr<ExprNode>&& right);
24 };
25 
26 }
27 
28 #endif
Definition: AndOperator.h:8
Datum Eval(const std::vector< NullableDatumRef > &record) const override
Evaluate function upon a deserialized record.
Definition: AndOperator.cpp:29
AndOperator(std::unique_ptr< ExprNode > &&left, std::unique_ptr< ExprNode > &&right)
Definition: AndOperator.cpp:7
static std::unique_ptr< AndOperator > Create(std::unique_ptr< ExprNode > &&left, std::unique_ptr< ExprNode > &&right)
Definition: AndOperator.cpp:21
void node_properties_to_string(std::string &buf, int indent) const override
Definition: AndOperator.cpp:47
~AndOperator() override
Definition: AndOperator.h:13
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: datum.h:28