Thrill
0.1
|
A reduce index function, which determines a bucket depending on the current index range [begin,end).
It is used by ReduceToIndex.
Definition at line 84 of file reduce_functional.hpp.
#include <reduce_functional.hpp>
Classes | |
struct | Result |
Public Member Functions | |
ReduceByIndex (const common::Range &range) | |
ReduceByIndex (size_t begin=0, size_t end=0) | |
size_t | inverse (size_t bucket, const size_t &num_buckets) |
common::Range | inverse_range (size_t partition_id, const size_t &num_buckets_per_partition, const size_t &num_buckets) |
deliver inverse range mapping of a partition More... | |
Result | operator() (const Key &k, const size_t &, const size_t &num_buckets_per_partition, const size_t &num_buckets) const |
const common::Range & | range () const |
void | set_range (const common::Range &range) |
Private Attributes | |
common::Range | range_ |
|
inlineexplicit |
Definition at line 103 of file reduce_functional.hpp.
|
inlineexplicit |
Definition at line 106 of file reduce_functional.hpp.
|
inline |
inverse mapping: takes a bucket index and returns the smallest index delivered to the bucket.
Definition at line 132 of file reduce_functional.hpp.
|
inline |
deliver inverse range mapping of a partition
Definition at line 139 of file reduce_functional.hpp.
|
inline |
Definition at line 113 of file reduce_functional.hpp.
|
inline |
Definition at line 109 of file reduce_functional.hpp.
|
inline |
Definition at line 111 of file reduce_functional.hpp.
|
private |
Definition at line 148 of file reduce_functional.hpp.