Thrill  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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

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.

References ReduceByHash< Key, HashFunction >::Result::remaining_hash.

Member Data Documentation

size_t partition_id

which partition number the item belongs to.

Definition at line 36 of file reduce_functional.hpp.

size_t remaining_hash

remaining hash bits for local index

Definition at line 38 of file reduce_functional.hpp.

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


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