A generic expression that can be evaluated to return a value. More...
#include <expressions.hpp>
Public Member Functions | |
virtual cudf::size_type | accept (detail::expression_parser &visitor) const =0 |
Accepts a visitor class. More... | |
virtual std::reference_wrapper< expression const > | accept (detail::expression_transformer &visitor) const =0 |
Accepts a visitor class. More... | |
bool | may_evaluate_null (table_view const &left, rmm::cuda_stream_view stream) const |
Returns true if the expression may evaluate to null. More... | |
virtual bool | may_evaluate_null (table_view const &left, table_view const &right, rmm::cuda_stream_view stream) const =0 |
Returns true if the expression may evaluate to null. More... | |
A generic expression that can be evaluated to return a value.
This class is a part of a "visitor" pattern with the expression_parser
class. Expressions inheriting from this class can accept parsers as visitors.
Definition at line 48 of file expressions.hpp.
|
pure virtual |
Accepts a visitor class.
visitor | The expression_parser parsing this expression tree |
Implemented in cudf::ast::column_name_reference, cudf::ast::operation, cudf::ast::column_reference, and cudf::ast::literal.
|
pure virtual |
Accepts a visitor class.
visitor | The expression_transformer transforming this expression tree |
Implemented in cudf::ast::column_name_reference, cudf::ast::operation, cudf::ast::column_reference, and cudf::ast::literal.
|
inline |
Returns true if the expression may evaluate to null.
left | The left operand of the expression (The same is used as right operand) |
stream | CUDA stream used for device memory operations and kernel launches |
true
if the expression may evaluate to null, otherwise false Definition at line 73 of file expressions.hpp.
|
pure virtual |
Returns true if the expression may evaluate to null.
left | The left operand of the expression |
right | The right operand of the expression |
stream | CUDA stream used for device memory operations and kernel launches |
true
if the expression may evaluate to null, otherwise false Implemented in cudf::ast::column_name_reference, cudf::ast::operation, cudf::ast::column_reference, and cudf::ast::literal.