Thrill  0.1
ReduceByHash< Key, HashFunction >::Result Struct Reference

Detailed Description

template<typename Key, typename HashFunction = std::hash<Key>>
struct thrill::core::ReduceByHash< Key, HashFunction >::Result

Definition at line 34 of file reduce_functional.hpp.

#include <reduce_functional.hpp>

Public Member Functions

size_t local_index (size_t size) const
 

Public Attributes

size_t partition_id
 which partition number the item belongs to. More...
 
size_t remaining_hash
 remaining hash bits for local index More...
 

Member Function Documentation

◆ local_index()

size_t local_index ( size_t  size) const
inline

calculate local index into a partition containing a hash table of smaller size

Definition at line 42 of file reduce_functional.hpp.

Member Data Documentation

◆ partition_id

size_t partition_id

which partition number the item belongs to.

Definition at line 36 of file reduce_functional.hpp.

Referenced by ReduceByHash< Key, HashFunction >::operator()().

◆ remaining_hash

size_t remaining_hash

remaining hash bits for local index

Definition at line 38 of file reduce_functional.hpp.

Referenced by ReduceByHash< Key, HashFunction >::operator()().


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