An owning class to represent a list value in device memory. More...
#include <scalar.hpp>
Public Member Functions | |
| list_scalar (list_scalar &&other)=default | |
| Move constructor for list_scalar. More... | |
| list_scalar & | operator= (list_scalar const &other)=delete |
| list_scalar & | operator= (list_scalar &&other)=delete |
| list_scalar (list_scalar const &other, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref()) | |
| Construct a new list scalar object by deep copying another. More... | |
| list_scalar (cudf::column_view const &data, bool is_valid=true, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref()) | |
| Construct a new list scalar object from column_view. More... | |
| list_scalar (cudf::column &&data, bool is_valid=true, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref()) | |
| Construct a new list scalar object from existing column. More... | |
| column_view | view () const |
| Returns a non-owning, immutable view to underlying device data. More... | |
Public Member Functions inherited from cudf::scalar | |
| scalar & | operator= (scalar const &other)=delete |
| scalar & | operator= (scalar &&other)=delete |
| data_type | type () const noexcept |
| Returns the scalar's logical value type. More... | |
| void | set_valid_async (bool is_valid, rmm::cuda_stream_view stream=cudf::get_default_stream()) |
| Updates the validity of the value. More... | |
| bool | is_valid (rmm::cuda_stream_view stream=cudf::get_default_stream()) const |
| Indicates whether the scalar contains a valid value. More... | |
| bool * | validity_data () |
| Returns a raw pointer to the validity bool in device memory. More... | |
| bool const * | validity_data () const |
| Return a const raw pointer to the validity bool in device memory. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from cudf::scalar | |
| scalar (scalar &&other)=default | |
| Move constructor for scalar. More... | |
| scalar (scalar const &other, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref()) | |
| Construct a new scalar object by deep copying another. More... | |
| scalar (data_type type, bool is_valid=false, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref()) | |
| Construct a new scalar object. More... | |
Protected Attributes inherited from cudf::scalar | |
| data_type | _type {type_id::EMPTY} |
| Logical type of value in the scalar. | |
| cudf::detail::device_scalar< bool > | _is_valid |
| Device bool signifying validity. | |
An owning class to represent a list value in device memory.
Definition at line 705 of file scalar.hpp.
|
default |
Move constructor for list_scalar.
| other | The other list_scalar to move from. |
| cudf::list_scalar::list_scalar | ( | list_scalar const & | other, |
| rmm::cuda_stream_view | stream = cudf::get_default_stream(), |
||
| rmm::device_async_resource_ref | mr = cudf::get_current_device_resource_ref() |
||
| ) |
Construct a new list scalar object by deep copying another.
| other | The scalar to copy. |
| stream | CUDA stream used for device memory operations. |
| mr | Device memory resource to use for device memory allocation. |
| cudf::list_scalar::list_scalar | ( | cudf::column_view const & | data, |
| bool | is_valid = true, |
||
| rmm::cuda_stream_view | stream = cudf::get_default_stream(), |
||
| rmm::device_async_resource_ref | mr = cudf::get_current_device_resource_ref() |
||
| ) |
Construct a new list scalar object from column_view.
The input column_view is copied.
| data | The column data to copy. |
| is_valid | Whether the value held by the scalar is valid. |
| stream | CUDA stream used for device memory operations. |
| mr | Device memory resource to use for device memory allocation. |
| cudf::list_scalar::list_scalar | ( | cudf::column && | data, |
| bool | is_valid = true, |
||
| rmm::cuda_stream_view | stream = cudf::get_default_stream(), |
||
| rmm::device_async_resource_ref | mr = cudf::get_current_device_resource_ref() |
||
| ) |
Construct a new list scalar object from existing column.
| data | The column to take ownership of. |
| is_valid | Whether the value held by the scalar is valid. |
| stream | CUDA stream used for device memory operations. |
| mr | Device memory resource to use for device memory allocation. |
| column_view cudf::list_scalar::view | ( | ) | const |
Returns a non-owning, immutable view to underlying device data.