libcudf
24.04.00
|
Files | |
file | dictionary/search.hpp |
Functions | |
std::unique_ptr< scalar > | cudf::dictionary::get_index (dictionary_column_view const &dictionary, scalar const &key, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) |
Return the index value for a given key. More... | |
std::unique_ptr<scalar> cudf::dictionary::get_index | ( | dictionary_column_view const & | dictionary, |
scalar const & | key, | ||
rmm::cuda_stream_view | stream = cudf::get_default_stream() , |
||
rmm::mr::device_memory_resource * | mr = rmm::mr::get_current_device_resource() |
||
) |
Return the index value for a given key.
If the key does not exist in the dictionary the returned scalar will have is_valid()==false
cudf::logic_error | if key.type() != dictionary.keys().type() |
dictionary | The dictionary to search for the key. |
key | The value to search for in the dictionary keyset. |
stream | CUDA stream used for device memory operations and kernel launches. |
mr | Device memory resource used to allocate the returned scalar's device memory. |