A literal value used in an abstract syntax tree.
More...
#include <expressions.hpp>
A literal value used in an abstract syntax tree.
Definition at line 262 of file expressions.hpp.
◆ literal() [1/4]
Construct a new literal object.
- Template Parameters
-
T | Numeric scalar template type |
- Parameters
-
value | A numeric scalar value |
Definition at line 271 of file expressions.hpp.
◆ literal() [2/4]
Construct a new literal object.
- Template Parameters
-
T | Timestamp scalar template type |
- Parameters
-
value | A timestamp scalar value |
Definition at line 282 of file expressions.hpp.
◆ literal() [3/4]
Construct a new literal object.
- Template Parameters
-
T | Duration scalar template type |
- Parameters
-
value | A duration scalar value |
Definition at line 293 of file expressions.hpp.
◆ literal() [4/4]
Construct a new literal object.
- Parameters
-
value | A string scalar value |
Definition at line 302 of file expressions.hpp.
◆ accept() [1/2]
cudf::size_type cudf::ast::literal::accept |
( |
detail::expression_parser & |
visitor | ) |
const |
|
overridevirtual |
Accepts a visitor class.
- Parameters
-
visitor | The expression_parser parsing this expression tree |
- Returns
- Index of device data reference for this instance
Implements cudf::ast::expression.
◆ accept() [2/2]
std::reference_wrapper<expression const> cudf::ast::literal::accept |
( |
detail::expression_transformer & |
visitor | ) |
const |
|
overridevirtual |
Accepts a visitor class.
- Parameters
-
visitor | The expression_parser parsing this expression tree |
- Returns
- Index of device data reference for this instance
Implements cudf::ast::expression.
◆ get_data_type()
Get the data type.
- Returns
- The data type of the literal
Definition at line 309 of file expressions.hpp.
◆ get_value()
Get the value object.
- Returns
- The device scalar object
Definition at line 316 of file expressions.hpp.
◆ is_valid()
Check if the underlying scalar is valid.
- Parameters
-
stream | CUDA stream used for device memory operations and kernel launches |
- Returns
- true if the underlying scalar is valid
Definition at line 342 of file expressions.hpp.
◆ may_evaluate_null()
Returns true if the expression may evaluate to null.
- Parameters
-
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 |
- Returns
true
if the expression may evaluate to null, otherwise false
Implements cudf::ast::expression.
Definition at line 329 of file expressions.hpp.
The documentation for this class was generated from the following file: