| std::unique_ptr<scalar> cudf::make_default_constructed_scalar | ( | data_type | type, |
| rmm::cuda_stream_view | stream = cudf::get_default_stream(), |
||
| rmm::device_async_resource_ref | mr = cudf::get_current_device_resource_ref() |
||
| ) |
#include <cudf/scalar/scalar_factories.hpp>
Constructs default constructed scalar of type type
| std::bad_alloc | if device memory allocation fails |
| type | The desired element type |
| stream | CUDA stream used for device memory operations. |
| mr | Device memory resource used to allocate the scalar's data and is_valid bool. |
type | std::unique_ptr<scalar> cudf::make_duration_scalar | ( | data_type | type, |
| rmm::cuda_stream_view | stream = cudf::get_default_stream(), |
||
| rmm::device_async_resource_ref | mr = cudf::get_current_device_resource_ref() |
||
| ) |
#include <cudf/scalar/scalar_factories.hpp>
Construct scalar with uninitialized storage to hold a value of the specified duration data_type.
| std::bad_alloc | if device memory allocation fails |
| cudf::logic_error | if type is not a duration type |
| type | The desired duration element type |
| stream | CUDA stream used for device memory operations. |
| mr | Device memory resource used to allocate the scalar's data and is_valid bool. |
| std::unique_ptr<scalar> cudf::make_empty_scalar_like | ( | column_view const & | input, |
| rmm::cuda_stream_view | stream = cudf::get_default_stream(), |
||
| rmm::device_async_resource_ref | mr = cudf::get_current_device_resource_ref() |
||
| ) |
#include <cudf/scalar/scalar_factories.hpp>
Creates an empty (invalid) scalar of the same type as the input column_view.
| cudf::logic_error | if the input column is struct type and empty |
| input | Immutable view of input column to emulate |
| stream | CUDA stream used for device memory operations. |
| mr | Device memory resource used to allocate the scalar's data and is_valid bool. |
input column | std::unique_ptr<scalar> cudf::make_fixed_point_scalar | ( | typename T::rep | value, |
| numeric::scale_type | scale, | ||
| rmm::cuda_stream_view | stream = cudf::get_default_stream(), |
||
| rmm::device_async_resource_ref | mr = cudf::get_current_device_resource_ref() |
||
| ) |
#include <cudf/scalar/scalar_factories.hpp>
Construct scalar using the given value of fixed_point type.
| T | Datatype of the value to be represented by the scalar |
| value | The value to store in the scalar object |
| scale | The scale of the fixed point value |
| stream | CUDA stream used for device memory operations. |
| mr | Device memory resource used to allocate the scalar's data and is_valid bool. |
T Definition at line 170 of file scalar_factories.hpp.
| std::unique_ptr<scalar> cudf::make_fixed_width_scalar | ( | data_type | type, |
| rmm::cuda_stream_view | stream = cudf::get_default_stream(), |
||
| rmm::device_async_resource_ref | mr = cudf::get_current_device_resource_ref() |
||
| ) |
#include <cudf/scalar/scalar_factories.hpp>
Construct scalar with uninitialized storage to hold a value of the specified fixed-width data_type.
| std::bad_alloc | if device memory allocation fails |
| cudf::logic_error | if type is not a fixed-width type |
| type | The desired fixed-width element type |
| stream | CUDA stream used for device memory operations. |
| mr | Device memory resource used to allocate the scalar's data and is_valid bool. |
| std::unique_ptr<scalar> cudf::make_fixed_width_scalar | ( | T | value, |
| rmm::cuda_stream_view | stream = cudf::get_default_stream(), |
||
| rmm::device_async_resource_ref | mr = cudf::get_current_device_resource_ref() |
||
| ) |
#include <cudf/scalar/scalar_factories.hpp>
Construct scalar using the given value of fixed width type.
| T | Datatype of the value to be represented by the scalar |
| value | The value to store in the scalar object |
| stream | CUDA stream used for device memory operations. |
| mr | Device memory resource used to allocate the scalar's data and is_valid bool. |
T Definition at line 151 of file scalar_factories.hpp.
| std::unique_ptr<scalar> cudf::make_list_scalar | ( | column_view | elements, |
| rmm::cuda_stream_view | stream = cudf::get_default_stream(), |
||
| rmm::device_async_resource_ref | mr = cudf::get_current_device_resource_ref() |
||
| ) |
#include <cudf/scalar/scalar_factories.hpp>
Construct scalar using the given column of elements.
| elements | Elements of the list |
| stream | CUDA stream used for device memory operations. |
| mr | Device memory resource used to allocate the scalar's data and is_valid bool. |
| std::unique_ptr<scalar> cudf::make_numeric_scalar | ( | data_type | type, |
| rmm::cuda_stream_view | stream = cudf::get_default_stream(), |
||
| rmm::device_async_resource_ref | mr = cudf::get_current_device_resource_ref() |
||
| ) |
#include <cudf/scalar/scalar_factories.hpp>
Construct scalar with uninitialized storage to hold a value of the specified numeric data_type.
| std::bad_alloc | if device memory allocation fails |
| cudf::logic_error | if type is not a numeric type |
| type | The desired numeric element type |
| stream | CUDA stream used for device memory operations. |
| mr | Device memory resource used to allocate the scalar's data and is_valid bool. |
| std::unique_ptr<scalar> cudf::make_string_scalar | ( | std::string const & | string, |
| rmm::cuda_stream_view | stream = cudf::get_default_stream(), |
||
| rmm::device_async_resource_ref | mr = cudf::get_current_device_resource_ref() |
||
| ) |
#include <cudf/scalar/scalar_factories.hpp>
Construct STRING type scalar given a std::string. The size of the std::string must not exceed the maximum size of size_type. The string characters are expected to be UTF-8 encoded sequence of char bytes.
| std::bad_alloc | if device memory allocation fails |
| string | The std::string to copy to device |
| stream | CUDA stream used for device memory operations. |
| mr | Device memory resource used to allocate the scalar's data and is_valid bool. |
string | std::unique_ptr<scalar> cudf::make_struct_scalar | ( | std::span< column_view const > | data, |
| rmm::cuda_stream_view | stream = cudf::get_default_stream(), |
||
| rmm::device_async_resource_ref | mr = cudf::get_current_device_resource_ref() |
||
| ) |
#include <cudf/scalar/scalar_factories.hpp>
Construct a struct scalar using the given span of column views.
The columns must have 1 row.
| data | The columnar data to store in the scalar object |
| stream | CUDA stream used for device memory operations. |
| mr | Device memory resource used to allocate the scalar's data and is_valid bool. |
| std::unique_ptr<scalar> cudf::make_struct_scalar | ( | table_view const & | data, |
| rmm::cuda_stream_view | stream = cudf::get_default_stream(), |
||
| rmm::device_async_resource_ref | mr = cudf::get_current_device_resource_ref() |
||
| ) |
#include <cudf/scalar/scalar_factories.hpp>
Construct a struct scalar using the given table_view.
The columns must have 1 row.
| data | The columnar data to store in the scalar object |
| stream | CUDA stream used for device memory operations. |
| mr | Device memory resource used to allocate the scalar's data and is_valid bool. |
| std::unique_ptr<scalar> cudf::make_timestamp_scalar | ( | data_type | type, |
| rmm::cuda_stream_view | stream = cudf::get_default_stream(), |
||
| rmm::device_async_resource_ref | mr = cudf::get_current_device_resource_ref() |
||
| ) |
#include <cudf/scalar/scalar_factories.hpp>
Construct scalar with uninitialized storage to hold a value of the specified timestamp data_type.
| std::bad_alloc | if device memory allocation fails |
| cudf::logic_error | if type is not a timestamp type |
| type | The desired timestamp element type |
| stream | CUDA stream used for device memory operations. |
| mr | Device memory resource used to allocate the scalar's data and is_valid bool. |