独特哈希连接(Distinct hash join),在创建时构建哈希表,并在随后的 `*_join` 成员函数中探测结果。 更多...
#include <join.hpp>
独特哈希连接(Distinct hash join),在创建时构建哈希表,并在随后的 `*_join` 成员函数中探测结果。
此类实现了独特哈希连接方案,即一次构建哈希表,然后根据需要多次(可能并行)进行探测。
cudf::distinct_hash_join::distinct_hash_join | ( | cudf::table_view const & | build, |
null_equality | compare_nulls = null_equality::EQUAL , |
||
rmm::cuda_stream_view | stream = cudf::get_default_stream() |
||
) |
构造一个独特哈希连接对象,用于后续的探测调用。
build | 包含唯一元素的构建表 |
compare_nulls | 控制空值连接键是否匹配 |
stream | 用于设备内存操作和核函数启动的 CUDA 流 |
std::pair<std::unique_ptr<rmm::device_uvector<size_type> >, std::unique_ptr<rmm::device_uvector<size_type> > > cudf::distinct_hash_join::inner_join | ( | cudf::table_view const & | probe, |
rmm::cuda_stream_view | stream = cudf::get_default_stream() , |
||
rmm::device_async_resource_ref | mr = cudf::get_current_device_resource_ref() |
||
) | const |
返回可用于构建两个表(通过内连接)连接结果的行索引。
probe | 探测表,从中探测键 |
stream | 用于设备内存操作和核函数启动的 CUDA 流 |
mr | 用于分配返回索引的设备内存的设备内存资源。 |
std::unique_ptr<rmm::device_uvector<size_type> > cudf::distinct_hash_join::left_join | ( | cudf::table_view const & | probe, |
rmm::cuda_stream_view | stream = cudf::get_default_stream() , |
||
rmm::device_async_resource_ref | mr = cudf::get_current_device_resource_ref() |
||
) | const |
返回可用于构建两个表(通过左连接)连接结果的构建表索引。
probe | 探测表,从中探测键 |
stream | 用于设备内存操作和核函数启动的 CUDA 流 |
mr | 用于分配返回的表和列的设备内存的设备内存资源。 |