OmniSciDB  04ee39c94c
HashTypeCache Class Reference

#include <BaselineJoinHashTable.h>

+ Collaboration diagram for HashTypeCache:

Static Public Member Functions

static void set (const std::vector< ChunkKey > &key, const JoinHashTableInterface::HashType hash_type)
 
static std::pair< JoinHashTableInterface::HashType, bool > get (const std::vector< ChunkKey > &key)
 

Static Private Attributes

static std::map< std::vector< ChunkKey >, JoinHashTableInterface::HashTypehash_type_cache_
 
static std::mutex hash_type_cache_mutex_
 

Detailed Description

Definition at line 268 of file BaselineJoinHashTable.h.

Member Function Documentation

◆ get()

std::pair< JoinHashTableInterface::HashType, bool > HashTypeCache::get ( const std::vector< ChunkKey > &  key)
static

Definition at line 1204 of file BaselineJoinHashTable.cpp.

References JoinHashTableInterface::OneToOne.

Referenced by BaselineJoinHashTable::reify().

1205  {
1206  std::lock_guard<std::mutex> hash_type_cache_lock(hash_type_cache_mutex_);
1207  const auto it = hash_type_cache_.find(key);
1208  if (it == hash_type_cache_.end()) {
1210  }
1211  return {it->second, true};
1212 }
static std::map< std::vector< ChunkKey >, JoinHashTableInterface::HashType > hash_type_cache_
static std::mutex hash_type_cache_mutex_
+ Here is the caller graph for this function:

◆ set()

void HashTypeCache::set ( const std::vector< ChunkKey > &  key,
const JoinHashTableInterface::HashType  hash_type 
)
static

Definition at line 1198 of file BaselineJoinHashTable.cpp.

Referenced by BaselineJoinHashTable::reify().

1199  {
1200  std::lock_guard<std::mutex> hash_type_cache_lock(hash_type_cache_mutex_);
1201  hash_type_cache_[key] = hash_type;
1202 }
static std::map< std::vector< ChunkKey >, JoinHashTableInterface::HashType > hash_type_cache_
static std::mutex hash_type_cache_mutex_
+ Here is the caller graph for this function:

Member Data Documentation

◆ hash_type_cache_

std::map< std::vector< ChunkKey >, JoinHashTableInterface::HashType > HashTypeCache::hash_type_cache_
staticprivate

◆ hash_type_cache_mutex_

std::mutex HashTypeCache::hash_type_cache_mutex_
staticprivate

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