OmniSciDB  1dac507f6e
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
StringDictionary.cpp File Reference
#include "StringDictionary.h"
#include "../Shared/sqltypes.h"
#include "../Utils/Regexp.h"
#include "../Utils/StringLike.h"
#include "LeafHostInfo.h"
#include "Shared/Logger.h"
#include "Shared/thread_count.h"
#include "StringDictionaryClient.h"
#include <sys/fcntl.h>
#include <boost/filesystem/operations.hpp>
#include <boost/filesystem/path.hpp>
#include <boost/sort/spreadsort/string_sort.hpp>
#include <future>
#include <thread>
+ Include dependency graph for StringDictionary.cpp:

Go to the source code of this file.

Namespaces

 anonymous_namespace{StringDictionary.cpp}
 

Functions

size_t anonymous_namespace{StringDictionary.cpp}::file_size (const int fd)
 
int anonymous_namespace{StringDictionary.cpp}::checked_open (const char *path, const bool recover)
 
void * anonymous_namespace{StringDictionary.cpp}::checked_mmap (const int fd, const size_t sz)
 
void anonymous_namespace{StringDictionary.cpp}::checked_munmap (void *addr, size_t length)
 
const uint64_t anonymous_namespace{StringDictionary.cpp}::round_up_p2 (const uint64_t num)
 
uint32_t anonymous_namespace{StringDictionary.cpp}::rk_hash (const std::string &str)
 
template<class T >
void anonymous_namespace{StringDictionary.cpp}::log_encoding_error (const std::string &str)
 
bool anonymous_namespace{StringDictionary.cpp}::is_like (const std::string &str, const std::string &pattern, const bool icase, const bool is_simple, const char escape)
 
bool anonymous_namespace{StringDictionary.cpp}::is_regexp_like (const std::string &str, const std::string &pattern, const char escape)
 
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)
 

Variables

const int anonymous_namespace{StringDictionary.cpp}::SYSTEM_PAGE_SIZE = getpagesize()
 

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 1199 of file StringDictionary.cpp.

References StringDictionaryClient::translate_string_ids().

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

1204  {
1205  DictRef temp_dict_ref(-1, -1);
1206  StringDictionaryClient string_client(dict_server_host, temp_dict_ref, false);
1207  string_client.translate_string_ids(
1208  dest_ids, dest_dict_ref, source_ids, source_dict_ref, dest_generation);
1209 }

+ Here is the call graph for this function:

+ Here is the caller graph for this function: