deduplicate.hpp
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2025, NVIDIA CORPORATION.
3  * SPDX-License-Identifier: Apache-2.0
4  */
5 #pragma once
6 
7 #include <cudf/column/column.hpp>
9 #include <cudf/utilities/export.hpp>
11 
12 #include <rmm/cuda_stream_view.hpp>
13 #include <rmm/device_uvector.hpp>
14 
16 namespace CUDF_EXPORT nvtext {
39 std::unique_ptr<rmm::device_uvector<cudf::size_type>> build_suffix_array(
40  cudf::strings_column_view const& input,
41  cudf::size_type min_width,
44 
65 std::unique_ptr<cudf::column> resolve_duplicates(
66  cudf::strings_column_view const& input,
68  cudf::size_type min_width,
71 
94 std::unique_ptr<cudf::column> resolve_duplicates_pair(
95  cudf::strings_column_view const& input1,
97  cudf::strings_column_view const& input2,
99  cudf::size_type min_width,
102  // end of group
104 } // namespace CUDF_EXPORT nvtext
Given a column-view of strings type, an instance of this class provides a wrapper on this compound co...
Class definition for cudf::column.
rmm::cuda_stream_view const get_default_stream()
Get the current default stream.
rmm::device_async_resource_ref get_current_device_resource_ref()
Get the current device memory resource reference.
detail::cccl_async_resource_ref< cuda::mr::resource_ref< cuda::mr::device_accessible > > device_async_resource_ref
std::unique_ptr< rmm::device_uvector< cudf::size_type > > build_suffix_array(cudf::strings_column_view const &input, cudf::size_type min_width, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref())
Builds a suffix array for the input strings column.
std::unique_ptr< cudf::column > resolve_duplicates_pair(cudf::strings_column_view const &input1, cudf::device_span< cudf::size_type const > indices1, cudf::strings_column_view const &input2, cudf::device_span< cudf::size_type const > indices2, cudf::size_type min_width, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref())
Returns duplicate strings found from input1 found in the given input2.
std::unique_ptr< cudf::column > resolve_duplicates(cudf::strings_column_view const &input, cudf::device_span< cudf::size_type const > indices, cudf::size_type min_width, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref())
Returns duplicate strings found in the given input.
int32_t size_type
Row index type for columns and tables.
Definition: types.hpp:84
NVText APIs.
Class definition for cudf::strings_column_view.
Device version of C++20 std::span with reduced feature set.
Definition: span.hpp:323