OmniSciDB  eb3a3d0a03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 44 of file HashJoinRuntime.h.

Member Function Documentation

size_t HashEntryInfo::getNormalizedHashEntryCount ( ) const
inline

Definition at line 48 of file HashJoinRuntime.h.

References bucket_normalization, CHECK_GT, and hash_entry_count.

Referenced by PerfectJoinHashTableBuilder::allocateDeviceMemory(), fill_one_to_many_hash_table_bucketized(), fill_one_to_many_hash_table_on_device_bucketized(), PerfectJoinHashTable::getInstance(), PerfectJoinHashTableBuilder::initOneToManyHashTableOnCpu(), PerfectJoinHashTableBuilder::initOneToOneHashTableOnCpu(), and operator!().

48  {
50  auto modulo_res = hash_entry_count % static_cast<size_t>(bucket_normalization);
51  auto entry_count = hash_entry_count / static_cast<size_t>(bucket_normalization);
52  if (modulo_res) {
53  return entry_count + 1;
54  }
55  return entry_count;
56  }
#define CHECK_GT(x, y)
Definition: Logger.h:221
int64_t bucket_normalization
size_t hash_entry_count

+ Here is the caller graph for this function:

bool HashEntryInfo::operator! ( ) const
inline

Definition at line 58 of file HashJoinRuntime.h.

References getNormalizedHashEntryCount().

58 { return !(this->getNormalizedHashEntryCount()); }
size_t getNormalizedHashEntryCount() const

+ Here is the call graph for this function:

Member Data Documentation


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