An owning class to represent a struct value in device memory.
More...
#include <scalar.hpp>
|
| struct_scalar (struct_scalar &&other)=default |
| Move constructor for struct_scalar. More...
|
|
struct_scalar & | operator= (struct_scalar const &other)=delete |
|
struct_scalar & | operator= (struct_scalar &&other)=delete |
|
| struct_scalar (struct_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 struct scalar object by deep copying another. More...
|
|
| struct_scalar (table_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 struct scalar object from table_view. More...
|
|
| struct_scalar (host_span< 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 struct scalar object from a host_span of column_views. More...
|
|
| struct_scalar (table &&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 struct scalar object from an existing table in device memory. More...
|
|
table_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 struct value in device memory.
Definition at line 795 of file scalar.hpp.
◆ struct_scalar() [1/5]
◆ struct_scalar() [2/5]
cudf::struct_scalar::struct_scalar |
( |
struct_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 struct 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. |
◆ struct_scalar() [3/5]
cudf::struct_scalar::struct_scalar |
( |
table_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 struct scalar object from table_view.
The input table_view is deep-copied.
- Parameters
-
data | The table 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. |
◆ struct_scalar() [4/5]
cudf::struct_scalar::struct_scalar |
( |
host_span< 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 struct scalar object from a host_span of column_views.
The input column_views are deep-copied.
- Parameters
-
data | The column_views 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. |
◆ struct_scalar() [5/5]
cudf::struct_scalar::struct_scalar |
( |
table && |
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 struct scalar object from an existing table in device memory.
Note that this constructor moves the existing table data into the internal table data; no copies are performed.
- Parameters
-
data | The existing table data to take over. |
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: