OmniSciDB
a5dc49c757
|
#include <BaselineHashTable.h>
Public Member Functions | |
BaselineHashTable (MemoryLevel memory_level, BaselineHashTableEntryInfo hash_table_entry_info, Data_Namespace::DataMgr *data_mgr=nullptr, const int device_id=-1) | |
~BaselineHashTable () override | |
int8_t * | getGpuBuffer () const override |
size_t | getHashTableBufferSize (const ExecutorDeviceType device_type) const override |
int8_t * | getCpuBuffer () override |
HashType | getLayout () const override |
size_t | getEntryCount () const override |
size_t | getEmittedKeysCount () const override |
size_t | getRowIdSize () const override |
BaselineHashTableEntryInfo | getHashTableEntryInfo () const |
Public Member Functions inherited from HashTable | |
virtual | ~HashTable () |
Private Attributes | |
std::unique_ptr< int8_t[]> | cpu_hash_table_buff_ |
Data_Namespace::AbstractBuffer * | gpu_hash_table_buff_ {nullptr} |
MemoryLevel | memory_level_ |
BaselineHashTableEntryInfo | hash_table_entry_info_ |
Data_Namespace::DataMgr * | data_mgr_ |
const int | device_id_ |
Additional Inherited Members | |
Static Public Member Functions inherited from HashTable | |
static DecodedJoinHashBufferSet | toSet (size_t key_component_count, size_t key_component_width, size_t entry_count, const int8_t *ptr1, const int8_t *ptr2, const int8_t *ptr3, const int8_t *ptr4, size_t buffer_size) |
Decode hash table into a std::set for easy inspection and validation. More... | |
static std::string | toString (const std::string &type, const std::string &layout_type, size_t key_component_count, size_t key_component_width, size_t entry_count, const int8_t *ptr1, const int8_t *ptr2, const int8_t *ptr3, const int8_t *ptr4, size_t buffer_size, bool raw=false) |
Decode hash table into a human-readable string. More... | |
Definition at line 70 of file BaselineHashTable.h.
|
inline |
Definition at line 73 of file BaselineHashTable.h.
References CudaAllocator::allocGpuAbstractBuffer(), CHECK, CHECK_GE, BaselineHashTableEntryInfo::computeHashTableSize(), cpu_hash_table_buff_, data_mgr_, device_id_, HashTableEntryInfo::getHashTableLayout(), HashTableEntryInfo::getNumHashEntries(), HashTableEntryInfo::getNumKeys(), HashTableEntryInfo::getRowIdSizeInBytes(), gpu_hash_table_buff_, Data_Namespace::GPU_LEVEL, hash_table_entry_info_, memory_level_, OneToOne, UNREACHABLE, and VLOG.
|
inlineoverride |
Definition at line 113 of file BaselineHashTable.h.
References CHECK, data_mgr_, Data_Namespace::DataMgr::free(), and gpu_hash_table_buff_.
|
inlineoverridevirtual |
Implements HashTable.
Definition at line 130 of file BaselineHashTable.h.
References cpu_hash_table_buff_.
|
inlineoverridevirtual |
Implements HashTable.
Definition at line 140 of file BaselineHashTable.h.
References HashTableEntryInfo::getNumKeys(), and hash_table_entry_info_.
|
inlineoverridevirtual |
Implements HashTable.
Definition at line 137 of file BaselineHashTable.h.
References HashTableEntryInfo::getNumHashEntries(), and hash_table_entry_info_.
|
inlineoverridevirtual |
Implements HashTable.
Definition at line 122 of file BaselineHashTable.h.
References Data_Namespace::AbstractBuffer::getMemoryPtr(), and gpu_hash_table_buff_.
|
inlineoverridevirtual |
Implements HashTable.
Definition at line 126 of file BaselineHashTable.h.
References BaselineHashTableEntryInfo::computeHashTableSize(), and hash_table_entry_info_.
|
inline |
Definition at line 146 of file BaselineHashTable.h.
References hash_table_entry_info_.
|
inlineoverridevirtual |
Implements HashTable.
Definition at line 134 of file BaselineHashTable.h.
References HashTableEntryInfo::getHashTableLayout(), and hash_table_entry_info_.
|
inlineoverridevirtual |
Implements HashTable.
Definition at line 143 of file BaselineHashTable.h.
References HashTableEntryInfo::getRowIdSizeInBytes(), and hash_table_entry_info_.
|
private |
Definition at line 151 of file BaselineHashTable.h.
Referenced by BaselineHashTable(), and getCpuBuffer().
|
private |
Definition at line 156 of file BaselineHashTable.h.
Referenced by BaselineHashTable(), and ~BaselineHashTable().
|
private |
Definition at line 157 of file BaselineHashTable.h.
Referenced by BaselineHashTable().
|
private |
Definition at line 152 of file BaselineHashTable.h.
Referenced by BaselineHashTable(), getGpuBuffer(), and ~BaselineHashTable().
|
private |
Definition at line 155 of file BaselineHashTable.h.
Referenced by BaselineHashTable(), getEmittedKeysCount(), getEntryCount(), getHashTableBufferSize(), getHashTableEntryInfo(), getLayout(), and getRowIdSize().
|
private |
Definition at line 154 of file BaselineHashTable.h.
Referenced by BaselineHashTable().