Public Member Functions | List of all members
cudf::row::primitive::row_hasher< Hash > Class Template Reference

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

Public Member Functions

 row_hasher (cudf::nullate::DYNAMIC const &has_nulls, table_device_view t, hash_value_type seed=DEFAULT_HASH_SEED)
 Constructs a row_hasher object with a seed value. More...
 
 row_hasher (cudf::nullate::DYNAMIC const &has_nulls, std::shared_ptr< cudf::experimental::row::equality::preprocessed_table > t, hash_value_type seed=DEFAULT_HASH_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 = cudf::hashing::detail::default_hash>
class cudf::row::primitive::row_hasher< Hash >

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

Template Parameters
HashHash functor to use for hashing elements.

Definition at line 193 of file primitive_row_operators.cuh.

Constructor & Destructor Documentation

◆ row_hasher() [1/2]

template<template< typename > class Hash = cudf::hashing::detail::default_hash>
cudf::row::primitive::row_hasher< Hash >::row_hasher ( cudf::nullate::DYNAMIC const &  has_nulls,
table_device_view  t,
hash_value_type  seed = DEFAULT_HASH_SEED 
)
inline

Constructs a row_hasher object with a seed value.

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

Definition at line 204 of file primitive_row_operators.cuh.

◆ row_hasher() [2/2]

template<template< typename > class Hash = cudf::hashing::detail::default_hash>
cudf::row::primitive::row_hasher< Hash >::row_hasher ( cudf::nullate::DYNAMIC const &  has_nulls,
std::shared_ptr< cudf::experimental::row::equality::preprocessed_table t,
hash_value_type  seed = DEFAULT_HASH_SEED 
)
inline

Constructs a row_hasher object with a seed value.

Parameters
has_nullsIndicates if the input column contains nulls
tPreprocessed table to hash
seedA seed value to use for hashing

Definition at line 218 of file primitive_row_operators.cuh.

Member Function Documentation

◆ operator()()

template<template< typename > class Hash = cudf::hashing::detail::default_hash>
auto cudf::row::primitive::row_hasher< Hash >::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 231 of file primitive_row_operators.cuh.


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