OmniSciDB  ca0c39ec8f
 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 43 of file HashJoinRuntime.h.

Member Function Documentation

size_t HashEntryInfo::getNormalizedHashEntryCount ( ) const

Definition at line 47 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!().

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

+ Here is the caller graph for this function:

bool HashEntryInfo::operator! ( ) const

Definition at line 57 of file HashJoinRuntime.h.

References getNormalizedHashEntryCount().

57 { 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: