Scalar factory APIs. More...
#include <cudf/scalar/scalar.hpp>
#include <cudf/utilities/default_stream.hpp>
#include <rmm/cuda_stream_view.hpp>
#include <rmm/mr/device/per_device_resource.hpp>
#include <rmm/resource_ref.hpp>
Go to the source code of this file.
Namespaces | |
cudf | |
cuDF interfaces | |
Functions | |
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=rmm::mr::get_current_device_resource()) |
Construct scalar with uninitialized storage to hold a value of the specified numeric data_type . More... | |
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=rmm::mr::get_current_device_resource()) |
Construct scalar with uninitialized storage to hold a value of the specified timestamp data_type . More... | |
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=rmm::mr::get_current_device_resource()) |
Construct scalar with uninitialized storage to hold a value of the specified duration data_type . More... | |
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=rmm::mr::get_current_device_resource()) |
Construct scalar with uninitialized storage to hold a value of the specified fixed-width data_type . More... | |
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=rmm::mr::get_current_device_resource()) |
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. More... | |
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=rmm::mr::get_current_device_resource()) |
Constructs default constructed scalar of type type More... | |
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=rmm::mr::get_current_device_resource()) |
Creates an empty (invalid) scalar of the same type as the input column_view. More... | |
template<typename T > | |
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=rmm::mr::get_current_device_resource()) |
Construct scalar using the given value of fixed width type. More... | |
template<typename T > | |
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=rmm::mr::get_current_device_resource()) |
Construct scalar using the given value of fixed_point type. More... | |
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=rmm::mr::get_current_device_resource()) |
Construct scalar using the given column of elements. More... | |
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=rmm::mr::get_current_device_resource()) |
Construct a struct scalar using the given table_view. More... | |
std::unique_ptr< scalar > | cudf::make_struct_scalar (host_span< column_view const > data, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=rmm::mr::get_current_device_resource()) |
Construct a struct scalar using the given span of column views. More... | |
Scalar factory APIs.
Definition in file scalar_factories.hpp.