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

计算给定列中元素的哈希值。 更多...

公共成员函数

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
 返回给定列中给定元素的哈希值。 更多...
 

公共属性

Nullate has_nulls
 一个 cudf::nullate 类型,描述如何检查空值。
 

详细描述

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

计算给定列中元素的哈希值。

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

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

成员函数文档

◆ 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< hash_function, Nullate >::operator() ( column_device_view  col,
size_type  row_index 
) const
inline

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

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

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

◆ 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< hash_function, Nullate >::operator() ( column_device_view  col,
size_type  row_index 
) const
inline

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

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

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


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