libcudf  24.02.00
Public Member Functions | List of all members
cudf::element_hasher_with_seed< hash_function, Nullate > Class Template Reference

Function object for computing the hash value of a row in a column. More...

Public Member Functions

 element_hasher_with_seed (Nullate has_nulls, uint32_t seed)
 Constructs a function object for hashing an element in the given column. More...
 
 element_hasher_with_seed (Nullate has_nulls, uint32_t seed, hash_value_type null_hash)
 Constructs a function object for hashing an element in the given column. More...
 
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...
 

Detailed Description

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

Function object for computing the hash value of a row in a column.

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

Definition at line 501 of file row_operators.cuh.

Constructor & Destructor Documentation

◆ 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

Constructs a function object for hashing an element in the given column.

Parameters
has_nullsIndicates if either input column contains nulls
seedThe seed to use for the hash function

Definition at line 509 of file row_operators.cuh.

◆ 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

Constructs a function object for hashing an element in the given column.

Parameters
has_nullsIndicates if either input column contains nulls
seedThe seed to use for the hash function
null_hashThe hash value to use for null elements

Definition at line 521 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_with_seed< 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 535 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_with_seed< 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 550 of file row_operators.cuh.


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