OmniSciDB  d2f719934e
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DataRecyclerUtil Class Reference

#include <DataRecycler.h>

Static Public Member Functions

static std::string_view toStringCacheItemType (CacheItemType item_type)
 
static std::string getDeviceIdentifierString (DeviceIdentifier device_identifier)
 

Static Public Attributes

static constexpr auto cache_item_type_str
 
static constexpr DeviceIdentifier CPU_DEVICE_IDENTIFIER = 0
 

Detailed Description

Definition at line 116 of file DataRecycler.h.

Member Function Documentation

static std::string DataRecyclerUtil::getDeviceIdentifierString ( DeviceIdentifier  device_identifier)
inlinestatic

Definition at line 134 of file DataRecycler.h.

References CPU_DEVICE_IDENTIFIER, and to_string().

Referenced by HashingSchemeRecycler::putItemToCache(), OverlapsTuningParamRecycler::putItemToCache(), HashtableRecycler::putItemToCache(), HashingSchemeRecycler::toString(), and HashtableRecycler::toString().

134  {
135  std::string device_type = device_identifier == CPU_DEVICE_IDENTIFIER ? "CPU" : "GPU-";
136  return device_identifier != CPU_DEVICE_IDENTIFIER
137  ? device_type.append(std::to_string(device_identifier))
138  : device_type;
139  }
std::string to_string(char const *&&v)
static constexpr DeviceIdentifier CPU_DEVICE_IDENTIFIER
Definition: DataRecycler.h:132

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static std::string_view DataRecyclerUtil::toStringCacheItemType ( CacheItemType  item_type)
inlinestatic

Definition at line 127 of file DataRecycler.h.

References cache_item_type_str, and NUM_CACHE_ITEM_TYPE.

Referenced by CacheMetricTracker::CacheMetricTracker(), CacheMetricTracker::clearCacheMetricTracker(), HashingSchemeRecycler::putItemToCache(), OverlapsTuningParamRecycler::putItemToCache(), HashtableRecycler::putItemToCache(), and HashtableRecycler::toString().

127  {
128  static_assert(cache_item_type_str.size() == NUM_CACHE_ITEM_TYPE);
129  return cache_item_type_str[item_type];
130  }
static constexpr auto cache_item_type_str
Definition: DataRecycler.h:120

+ Here is the caller graph for this function:

Member Data Documentation

constexpr auto DataRecyclerUtil::cache_item_type_str
static
Initial value:
=
shared::string_view_array("Perfect Join Hashtable",
"Baseline Join Hashtable",
"Overlaps Join Hashtable",
"Hashing Scheme for Join Hashtable",
"Baseline Join Hashtable's Approximated Cardinality",
"Overlaps Join Hashtable's Auto Tuner's Parameters")

Definition at line 120 of file DataRecycler.h.

Referenced by toStringCacheItemType().


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