Thrill
0.1
|
A reduce index function which returns a hash index and partition.
It is used by ReduceByKey.
Definition at line 31 of file reduce_functional.hpp.
#include <reduce_functional.hpp>
Classes | |
struct | Result |
Public Member Functions | |
ReduceByHash (const HashFunction &hash_function=HashFunction()) | |
ReduceByHash (const uint64_t &salt, const HashFunction &hash_function=HashFunction()) | |
ReduceByHash (const uint64_t &salt, const ReduceByHash &other) | |
Result | operator() (const Key &k, const size_t &num_partitions, const size_t &, const size_t &) const |
Private Attributes | |
HashFunction | hash_function_ |
uint64_t | salt_ |
|
inlineexplicit |
Definition at line 47 of file reduce_functional.hpp.
|
inlineexplicit |
Definition at line 51 of file reduce_functional.hpp.
|
inline |
Definition at line 56 of file reduce_functional.hpp.
|
inline |
Definition at line 60 of file reduce_functional.hpp.
References thrill::common::Hash128to64(), ReduceByHash< Key, HashFunction >::hash_function_, ReduceByHash< Key, HashFunction >::Result::partition_id, ReduceByHash< Key, HashFunction >::Result::remaining_hash, and ReduceByHash< Key, HashFunction >::salt_.
|
private |
Definition at line 76 of file reduce_functional.hpp.
Referenced by ReduceByHash< Key, HashFunction >::operator()().
|
private |
Definition at line 75 of file reduce_functional.hpp.
Referenced by ReduceByHash< Key, HashFunction >::operator()().