12 #include <cudf/utilities/export.hpp>
19 namespace CUDF_EXPORT
cudf {
36 class key_remapping_impl;
165 using impl_type = cudf::detail::key_remapping_impl;
167 std::unique_ptr<impl_type> _impl;
Remaps keys to unique integer IDs.
std::unique_ptr< cudf::column > remap_probe_keys(cudf::table_view const &keys, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref()) const
Remap probe keys to integer IDs.
bool has_metrics() const
Check if metrics (distinct_count, max_duplicate_count) were computed.
key_remapping(cudf::table_view const &build, null_equality compare_nulls=null_equality::EQUAL, cudf::compute_metrics metrics=cudf::compute_metrics::YES, rmm::cuda_stream_view stream=cudf::get_default_stream())
Constructs a key remapping structure from the given build keys.
size_type get_max_duplicate_count() const
Get the maximum number of times any single key appears.
std::unique_ptr< cudf::column > remap_build_keys(rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref()) const
Remap build keys to integer IDs.
size_type get_distinct_count() const
Get the number of distinct keys in the build table.
A set of cudf::column_view's of the same size.
Class definition for cudf::column.
constexpr size_type KEY_REMAP_NOT_FOUND
Sentinel value for probe-side keys not found in build table.
constexpr size_type KEY_REMAP_BUILD_NULL
Sentinel value for build-side rows with null keys (when nulls are not equal)
compute_metrics
Enum to control whether key remapping metrics should be computed.
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
null_equality
Enum to consider two nulls as equal or unequal.
int32_t size_type
Row index type for columns and tables.
Class definitions for (mutable)_table_view
Type declarations for libcudf.