OmniSciDB  eb3a3d0a03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
StringDictionary.h File Reference
#include "../Shared/mapd_shared_mutex.h"
#include "DictRef.h"
#include "DictionaryCache.hpp"
#include "LeafHostInfo.h"
#include <future>
#include <map>
#include <string>
#include <tuple>
#include <vector>
+ Include dependency graph for StringDictionary.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


class  DictPayloadUnavailable
class  StringDictionary
struct  StringDictionary::StringIdxEntry
struct  StringDictionary::compare_cache_value_t
struct  StringDictionary::PayloadString


using string_dict_hash_t = uint32_t


int32_t truncate_to_generation (const int32_t id, const size_t generation)
void translate_string_ids (std::vector< int32_t > &dest_ids, const LeafHostInfo &dict_server_host, const DictRef dest_dict_ref, const std::vector< int32_t > &source_ids, const DictRef source_dict_ref, const int32_t dest_generation)


bool g_enable_stringdict_parallel

Typedef Documentation

using string_dict_hash_t = uint32_t

Definition at line 42 of file StringDictionary.h.

Function Documentation

void translate_string_ids ( std::vector< int32_t > &  dest_ids,
const LeafHostInfo dict_server_host,
const DictRef  dest_dict_ref,
const std::vector< int32_t > &  source_ids,
const DictRef  source_dict_ref,
const int32_t  dest_generation 

Definition at line 1525 of file StringDictionary.cpp.

References StringDictionaryClient::translate_string_ids().

Referenced by anonymous_namespace{RelAlgTranslator.cpp}::fill_dictionary_encoded_in_vals().

1530  {
1531  DictRef temp_dict_ref(-1, -1);
1532  StringDictionaryClient string_client(dict_server_host, temp_dict_ref, false);
1533  string_client.translate_string_ids(
1534  dest_ids, dest_dict_ref, source_ids, source_dict_ref, dest_generation);
1535 }

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int32_t truncate_to_generation ( const int32_t  id,
const size_t  generation 

Definition at line 32 of file StringDictionaryProxy.cpp.

References CHECK_GE, and StringDictionary::INVALID_STR_ID.

Referenced by StringDictionaryProxy::getIdOfString(), and StringDictionaryProxy::getOrAddTransient().

32  {
34  return id;
35  }
36  CHECK_GE(id, 0);
37  return static_cast<size_t>(id) >= generation ? StringDictionary::INVALID_STR_ID : id;
38 }
#define CHECK_GE(x, y)
Definition: Logger.h:222
static constexpr int32_t INVALID_STR_ID

+ Here is the caller graph for this function:

Variable Documentation

bool g_enable_stringdict_parallel