Thrill  0.1
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 76 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

◆ CounterType

using CounterType = uint8_t

Definition at line 80 of file inner_join.hpp.

◆ DIAIdxType

using DIAIdxType = uint8_t

Definition at line 81 of file inner_join.hpp.

◆ HashType

using HashType = size_t

Definition at line 79 of file inner_join.hpp.

Member Function Documentation

◆ NeedBroadcast()

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 110 of file inner_join.hpp.

◆ operator+()

◆ operator+=()

◆ operator<()

◆ ReadBits()

void ReadBits ( BitReader &  reader)
inline

Read count and dia_mask from BitReader.

Definition at line 116 of file inner_join.hpp.

◆ WriteBits()

void WriteBits ( BitWriter &  writer) const
inline

Write count and dia_mask to BitWriter.

Definition at line 123 of file inner_join.hpp.

Member Data Documentation

◆ count

◆ counter_bits_

constexpr size_t counter_bits_ = 8 * sizeof(CounterType)
static

Definition at line 87 of file inner_join.hpp.

◆ dia_mask

◆ hash


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