OmniSciDB  c07336695a
HashEntryInfo Struct Reference

#include <HashJoinRuntime.h>

Public Member Functions

size_t getNormalizedHashEntryCount () const
 
bool operator! () const
 

Public Attributes

size_t hash_entry_count
 
int64_t bucket_normalization
 

Detailed Description

Definition at line 36 of file HashJoinRuntime.h.

Member Function Documentation

◆ getNormalizedHashEntryCount()

size_t HashEntryInfo::getNormalizedHashEntryCount ( ) const
inline

Definition at line 40 of file HashJoinRuntime.h.

References bucket_normalization, and CHECK_GT.

Referenced by fill_one_to_many_hash_table_bucketized(), JoinHashTable::getInstance(), JoinHashTable::initHashTableOnCpu(), JoinHashTable::initOneToManyHashTableOnCpu(), and operator!().

40  {
42  auto modulo_res = hash_entry_count % static_cast<size_t>(bucket_normalization);
43  auto entry_count = hash_entry_count / static_cast<size_t>(bucket_normalization);
44  if (modulo_res) {
45  return entry_count + 1;
46  }
47  return entry_count;
48  }
#define CHECK_GT(x, y)
Definition: Logger.h:199
int64_t bucket_normalization
size_t hash_entry_count
+ Here is the caller graph for this function:

◆ operator!()

bool HashEntryInfo::operator! ( ) const
inline

Definition at line 50 of file HashJoinRuntime.h.

References getNormalizedHashEntryCount().

50 { return !(this->getNormalizedHashEntryCount()); }
size_t getNormalizedHashEntryCount() const
+ Here is the call graph for this function:

Member Data Documentation

◆ bucket_normalization

int64_t HashEntryInfo::bucket_normalization

◆ hash_entry_count

size_t HashEntryInfo::hash_entry_count

Definition at line 37 of file HashJoinRuntime.h.

Referenced by fill_one_to_many_hash_table().


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