A literal value used in an abstract syntax tree.
More...
#include <cudf/ast/expressions.hpp>
A literal value used in an abstract syntax tree.
Definition at line 246 of file expressions.hpp.
◆ literal() [1/6]
Construct a new literal object.
- Template Parameters
-
| T | Numeric scalar template type |
- Parameters
-
| value | A numeric scalar value |
Definition at line 255 of file expressions.hpp.
◆ literal() [2/6]
Construct a new literal object.
- Template Parameters
-
| T | Timestamp scalar template type |
- Parameters
-
| value | A timestamp scalar value |
Definition at line 267 of file expressions.hpp.
◆ literal() [3/6]
Construct a new literal object.
- Template Parameters
-
| T | Duration scalar template type |
- Parameters
-
| value | A duration scalar value |
Definition at line 279 of file expressions.hpp.
◆ literal() [4/6]
Construct a new literal object.
- Parameters
-
| value | A string scalar value |
Definition at line 289 of file expressions.hpp.
◆ literal() [5/6]
Construct a new literal object.
- Parameters
-
| value | A fixed-point scalar value |
Definition at line 300 of file expressions.hpp.
◆ literal() [6/6]
Construct a new literal object.
- Parameters
-
| value | A scalar column view value |
Definition at line 310 of file expressions.hpp.
◆ accept() [1/3]
| std::unique_ptr<cudf::detail::row_ir::node> cudf::ast::literal::accept |
( |
cudf::detail::row_ir::ast_converter & |
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/3]
| 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() [3/3]
| 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 317 of file expressions.hpp.
◆ get_scalar()
| cudf::scalar const& cudf::ast::literal::get_scalar |
( |
| ) |
const |
|
inline |
◆ get_scalar_column_view()
Get scalar column view.
- Returns
- The scalar column view object
Definition at line 365 of file expressions.hpp.
◆ get_value()
Get the value object.
- Returns
- The device scalar object
Definition at line 345 of file expressions.hpp.
◆ is_scalar_column_view()
| bool cudf::ast::literal::is_scalar_column_view |
( |
| ) |
const |
|
inlinenoexcept |
Check whether the literal is backed by a scalar column view.
- Returns
- true if the literal is backed by a scalar column view
Definition at line 335 of file expressions.hpp.
◆ is_valid()
| bool cudf::ast::literal::is_valid |
( |
cuda::stream_ref |
stream | ) |
const |
|
inline |
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 400 of file expressions.hpp.
◆ may_evaluate_null()
| bool cudf::ast::literal::may_evaluate_null |
( |
table_view const & |
left, |
|
|
table_view const & |
right, |
|
|
cuda::stream_ref |
stream |
|
) |
| const |
|
inlineoverridevirtual |
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 387 of file expressions.hpp.
The documentation for this class was generated from the following file: