| 129 | |
| 130 | Expression() = default; |
| 131 | explicit Expression(Call call); |
| 132 | explicit Expression(Datum literal); |
| 133 | explicit Expression(Parameter parameter); |
| 134 | |
| 135 | static bool Identical(const Expression& l, const Expression& r); |
| 136 | |
| 137 | private: |
| 138 | using Impl = std::variant<Datum, Parameter, Call>; |
| 139 | std::shared_ptr<Impl> impl_; |
| 140 | }; |
| 141 | |
| 142 | inline bool operator==(const Expression& l, const Expression& r) { return l.Equals(r); } |
| 143 | inline bool operator!=(const Expression& l, const Expression& r) { return !l.Equals(r); } |
| 144 | |
| 145 | ARROW_EXPORT void PrintTo(const Expression&, std::ostream*); |