Public Member Functions | Public Attributes | List of all members
cudf::element_hasher< hash_function, Nullate > Class Template Reference

Computes the hash value of an element in the given column. More...

Public Member Functions

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
 Returns the hash value of the given element in the given column. More...
 
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
 Returns the hash value of the given element in the given column. More...
 

Public Attributes

Nullate has_nulls
 A cudf::nullate type describing how to check for nulls.
 

Detailed Description

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

Computes the hash value of an element in the given column.

Template Parameters
hash_functionHash functor to use for hashing elements.
NullateA cudf::nullate type describing how to check for nulls.

Definition at line 460 of file row_operators.cuh.

Member Function Documentation

◆ 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

Returns the hash value of the given element in the given column.

Template Parameters
TThe type of the element to hash
Parameters
colThe column to hash
row_indexThe index of the row to hash
Returns
The hash value of the given element

Definition at line 471 of file row_operators.cuh.

◆ 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

Returns the hash value of the given element in the given column.

Template Parameters
TThe type of the element to hash
Parameters
colThe column to hash
row_indexThe index of the row to hash
Returns
The hash value of the given element

Definition at line 486 of file row_operators.cuh.


The documentation for this class was generated from the following file: