Files | Functions

Files

file  hashing.hpp
 

Functions

std::unique_ptr< columncudf::hash (table_view const &input, hash_id hash_function=hash_id::HASH_MURMUR3, std::vector< uint32_t > const &initial_hash={}, uint32_t seed=0, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
 Computes the hash value of each row in the input set of columns. More...
 

Detailed Description

Function Documentation

◆ hash()

std::unique_ptr<column> cudf::hash ( table_view const &  input,
hash_id  hash_function = hash_id::HASH_MURMUR3,
std::vector< uint32_t > const &  initial_hash = {},
uint32_t  seed = 0,
rmm::mr::device_memory_resource mr = rmm::mr::get_current_device_resource() 
)

Computes the hash value of each row in the input set of columns.

Parameters
inputThe table of columns to hash
initial_hashOptional vector of initial hash values for each column. If this vector is empty then each element will be hashed as-is.
mrDevice memory resource used to allocate the returned column's device memory.
Returns
A column where each row is the hash of a column from the input