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

用于计算列中某一行哈希值的函数对象。 更多...

公有成员函数

 element_hasher_with_seed (Nullate has_nulls, uint32_t seed)
 构造一个函数对象,用于对给定列中的元素进行哈希。 更多...
 
 element_hasher_with_seed (Nullate has_nulls, uint32_t seed, hash_value_type null_hash)
 构造一个函数对象,用于对给定列中的元素进行哈希。 更多...
 
template<typename T , CUDF_ENABLE_IF(column_device_view::has_element_accessor< T >()) >
hash_value_type operator() (column_device_view col, size_type row_index) const
 返回给定列中给定元素的哈希值。 更多...
 
template<typename T , CUDF_ENABLE_IF(not column_device_view::has_element_accessor< T >()) >
hash_value_type operator() (column_device_view col, size_type row_index) const
 返回给定列中给定元素的哈希值。 更多...
 

详细描述

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

用于计算列中某一行哈希值的函数对象。

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

定义在文件 row_operators.cuh 的第 500 行。

构造函数与析构函数文档

◆ element_hasher_with_seed() [1/2]

template<template< typename > class hash_function, typename Nullate >
cudf::element_hasher_with_seed< hash_function, Nullate >::element_hasher_with_seed ( Nullate  has_nulls,
uint32_t  seed 
)
inline

构造一个函数对象,用于对给定列中的元素进行哈希。

参数
has_nulls指示任一输入列是否包含空值
seed用于哈希函数的种子

定义在文件 row_operators.cuh 的第 508 行。

◆ element_hasher_with_seed() [2/2]

template<template< typename > class hash_function, typename Nullate >
cudf::element_hasher_with_seed< hash_function, Nullate >::element_hasher_with_seed ( Nullate  has_nulls,
uint32_t  seed,
hash_value_type  null_hash 
)
inline

构造一个函数对象,用于对给定列中的元素进行哈希。

参数
has_nulls指示任一输入列是否包含空值
seed用于哈希函数的种子
null_hash用于空值的哈希值

定义在文件 row_operators.cuh 的第 520 行。

成员函数文档

◆ operator()() [1/2]

template<template< typename > class hash_function, typename Nullate >
template<typename T , CUDF_ENABLE_IF(column_device_view::has_element_accessor< T >()) >
hash_value_type cudf::element_hasher_with_seed< hash_function, Nullate >::operator() ( column_device_view  col,
size_type  row_index 
) const
inline

返回给定列中给定元素的哈希值。

模板参数
T要哈希的元素类型
参数
col要哈希的列
row_index要哈希的行索引
返回
给定元素的哈希值

定义在文件 row_operators.cuh 的第 534 行。

◆ operator()() [2/2]

template<template< typename > class hash_function, typename Nullate >
template<typename T , CUDF_ENABLE_IF(not column_device_view::has_element_accessor< T >()) >
hash_value_type cudf::element_hasher_with_seed< hash_function, Nullate >::operator() ( column_device_view  col,
size_type  row_index 
) const
inline

返回给定列中给定元素的哈希值。

模板参数
T要哈希的元素类型
参数
col要哈希的列
row_index要哈希的行索引
返回
给定元素的哈希值

定义在文件 row_operators.cuh 的第 549 行。


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