An owning class to represent a list value in device memory.
More...
#include <scalar.hpp>
|
| 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::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) |
| 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::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) |
| 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::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) |
| 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...
|
|
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...
|
|
An owning class to represent a list value in device memory.
Definition at line 729 of file scalar.hpp.
◆ list_scalar() [1/4]
◆ list_scalar() [2/4]
cudf::list_scalar::list_scalar |
( |
list_scalar const & |
other, |
|
|
rmm::cuda_stream_view |
stream = cudf::get_default_stream() , |
|
|
rmm::mr::device_memory_resource * |
mr = rmm::mr::get_current_device_resource() |
|
) |
| |
Construct a new list scalar object by deep copying another.
- Parameters
-
other | The scalar to copy. |
stream | CUDA stream used for device memory operations. |
mr | Device memory resource to use for device memory allocation. |
◆ list_scalar() [3/4]
cudf::list_scalar::list_scalar |
( |
cudf::column_view const & |
data, |
|
|
bool |
is_valid = true , |
|
|
rmm::cuda_stream_view |
stream = cudf::get_default_stream() , |
|
|
rmm::mr::device_memory_resource * |
mr = rmm::mr::get_current_device_resource() |
|
) |
| |
Construct a new list scalar object from column_view.
The input column_view is copied.
- Parameters
-
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. |
◆ list_scalar() [4/4]
cudf::list_scalar::list_scalar |
( |
cudf::column && |
data, |
|
|
bool |
is_valid = true , |
|
|
rmm::cuda_stream_view |
stream = cudf::get_default_stream() , |
|
|
rmm::mr::device_memory_resource * |
mr = rmm::mr::get_current_device_resource() |
|
) |
| |
Construct a new list scalar object from existing column.
- Parameters
-
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. |
◆ view()
Returns a non-owning, immutable view to underlying device data.
- Returns
- A non-owning, immutable view to underlying device data
The documentation for this class was generated from the following file: