公共成员函数 | 所有成员列表
cudf::row_hasher< hash_function, Nullate > 类模板参考

计算给定表中行的哈希值。 更多...

公共成员函数

CUDF_HOST_DEVICE row_hasher (Nullate has_nulls, table_device_view t)
 构造一个 row_hasher 对象。 更多...
 
CUDF_HOST_DEVICE row_hasher (Nullate has_nulls, table_device_view t, uint32_t seed)
 构造一个带种子值的 row_hasher 对象。 更多...
 
auto operator() (size_type row_index) const
 计算 tablerow_index 处的行的哈希值 更多...
 

详细描述

template<template< typename > class hash_function, typename Nullate>
class cudf::row_hasher< hash_function, Nullate >

计算给定表中行的哈希值。

模板参数
hash_function用于哈希元素的哈希函子(functor)。
Nullate一个 cudf::nullate 类型,描述如何检查空值。

定义于文件 row_operators.cuh 的第 567 行。

构造函数与析构函数文档

◆ row_hasher() [1/2]

template<template< typename > class hash_function, typename Nullate >
CUDF_HOST_DEVICE cudf::row_hasher< hash_function, Nullate >::row_hasher ( Nullate  has_nulls,
table_device_view  t 
)
inline

构造一个 row_hasher 对象。

参数
has_nulls指示输入表中是否包含空值
t要进行哈希的 table_device_view

定义于文件 row_operators.cuh 的第 577 行。

◆ row_hasher() [2/2]

template<template< typename > class hash_function, typename Nullate >
CUDF_HOST_DEVICE cudf::row_hasher< hash_function, Nullate >::row_hasher ( Nullate  has_nulls,
table_device_view  t,
uint32_t  seed 
)
inline

构造一个带种子值的 row_hasher 对象。

参数
has_nulls指示输入表中是否包含空值
t要进行哈希的 table_device_view
seed用于哈希的种子值

定义于文件 row_operators.cuh 的第 588 行。

成员函数文档

◆ operator()()

template<template< typename > class hash_function, typename Nullate >
auto cudf::row_hasher< hash_function, Nullate >::operator() ( size_type  row_index) const
inline

计算 tablerow_index 处的行的哈希值

参数
row_index要进行哈希的行在 table 中的索引
返回值
tablerow_index 处的行的哈希值

定义于文件 row_operators.cuh 的第 599 行。


此类的文档生成自以下文件