11/*
2- * SPDX-FileCopyrightText: Copyright (c) 2020-2024 , NVIDIA CORPORATION.
2+ * SPDX-FileCopyrightText: Copyright (c) 2020-2026 , NVIDIA CORPORATION.
33 * SPDX-License-Identifier: Apache-2.0
44 */
55#pragma once
66
77#include < cudf/dictionary/dictionary_column_view.hpp>
88#include < cudf/scalar/scalar.hpp>
99#include < cudf/utilities/default_stream.hpp>
10- #include < cudf/utilities/export.hpp>
1110#include < cudf/utilities/memory_resource.hpp>
1211
1312#include < rmm/cuda_stream_view.hpp>
1413
15- namespace CUDF_EXPORT cudf {
14+ namespace cudf {
1615namespace dictionary {
1716namespace detail {
1817
@@ -27,30 +26,6 @@ std::unique_ptr<scalar> get_index(dictionary_column_view const& dictionary,
2726 rmm::cuda_stream_view stream,
2827 rmm::device_async_resource_ref mr);
2928
30- /* *
31- * @brief Get the index for a key if it were added to the given dictionary.
32- *
33- * The actual index is returned if the `key` is already part of the dictionary's key set.
34- *
35- * @code{.pseudo}
36- * d1 = {["a","c","d"],[2,0,1,0]}
37- * idx = get_insert_index(d1,"b")
38- * idx is 1
39- * @endcode{.pseudo}
40- *
41- * @throw cudf::logic_error if `key.type() != dictionary.keys().type()`
42- *
43- * @param dictionary The dictionary to search for the key.
44- * @param key The value to search for in the dictionary keyset.
45- * @param stream CUDA stream used for device memory operations and kernel launches.
46- * @param mr Device memory resource used to allocate the returned column's device memory.
47- * @return Numeric scalar index value of the key within the dictionary
48- */
49- std::unique_ptr<scalar> get_insert_index (dictionary_column_view const & dictionary,
50- scalar const & key,
51- rmm::cuda_stream_view stream,
52- rmm::device_async_resource_ref mr);
53-
5429} // namespace detail
5530} // namespace dictionary
56- } // namespace CUDF_EXPORT cudf
31+ } // namespace cudf
0 commit comments