Thrill  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
JoinNode< ValueType, FirstDIA, SecondDIA, KeyExtractor1, KeyExtractor2, JoinFunction, HashFunction, UseLocationDetection >::HashCount Class Reference

Detailed Description

template<typename ValueType, typename FirstDIA, typename SecondDIA, typename KeyExtractor1, typename KeyExtractor2, typename JoinFunction, typename HashFunction, bool UseLocationDetection>
class thrill::api::JoinNode< ValueType, FirstDIA, SecondDIA, KeyExtractor1, KeyExtractor2, JoinFunction, HashFunction, UseLocationDetection >::HashCount

hash counter used by LocationDetection

Definition at line 77 of file inner_join.hpp.

Public Types

using CounterType = uint8_t
 
using DIAIdxType = uint8_t
 
using HashType = size_t
 

Public Member Functions

bool NeedBroadcast () const
 
HashCount operator+ (const HashCount &b) const
 
HashCountoperator+= (const HashCount &b)
 
bool operator< (const HashCount &b) const
 
template<typename BitReader >
void ReadBits (BitReader &reader)
 Read count and dia_mask from BitReader. More...
 
template<typename BitWriter >
void WriteBits (BitWriter &writer) const
 Write count and dia_mask to BitWriter. More...
 

Public Attributes

CounterType count
 
DIAIdxType dia_mask
 
size_t hash
 

Static Public Attributes

static constexpr size_t counter_bits_ = 8 * sizeof(CounterType)
 

Member Typedef Documentation

using CounterType = uint8_t

Definition at line 81 of file inner_join.hpp.

using DIAIdxType = uint8_t

Definition at line 82 of file inner_join.hpp.

using HashType = size_t

Definition at line 80 of file inner_join.hpp.

Member Function Documentation

bool NeedBroadcast ( ) const
inline

method to check if this hash count should be broadcasted to all workers interested – for InnerJoin this check if the dia_mask == 3 -> hash was in both DIAs on some worker.

Definition at line 111 of file inner_join.hpp.

References JoinNode< ValueType, FirstDIA, SecondDIA, KeyExtractor1, KeyExtractor2, JoinFunction, HashFunction, UseLocationDetection >::HashCount::dia_mask.

Member Data Documentation


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