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

Computes the hash value of a row in the given table. More...

Public Member Functions

CUDF_HOST_DEVICE row_hasher (Nullate has_nulls, table_device_view t)
 Constructs a row_hasher object. More...
 
CUDF_HOST_DEVICE row_hasher (Nullate has_nulls, table_device_view t, uint32_t seed)
 Constructs a row_hasher object with a seed value. More...
 
auto operator() (size_type row_index) const
 Computes the hash value of the row at row_index in the table More...
 

Detailed Description

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

Computes the hash value of a row in the given table.

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

Definition at line 567 of file row_operators.cuh.

Constructor & Destructor Documentation

◆ 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

Constructs a row_hasher object.

Parameters
has_nullsIndicates if either input table contains nulls
tA table_device_view to hash

Definition at line 577 of file row_operators.cuh.

◆ 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

Constructs a row_hasher object with a seed value.

Parameters
has_nullsIndicates if either input table contains nulls
tA table_device_view to hash
seedA seed value to use for hashing

Definition at line 588 of file row_operators.cuh.

Member Function Documentation

◆ operator()()

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

Computes the hash value of the row at row_index in the table

Parameters
row_indexThe index of the row in the table to hash
Returns
The hash value of the row at row_index in the table

Definition at line 599 of file row_operators.cuh.


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