OmniSciDB
a667adc9c8
|
#include "StringDictionary/StringDictionary.h"
#include <tbb/parallel_for.h>
#include <boost/filesystem/operations.hpp>
#include <boost/filesystem/path.hpp>
#include <boost/sort/spreadsort/string_sort.hpp>
#include <future>
#include <iostream>
#include <string_view>
#include <thread>
#include <sys/fcntl.h>
#include "Logger/Logger.h"
#include "OSDependent/omnisci_fs.h"
#include "Shared/sqltypes.h"
#include "Shared/thread_count.h"
#include "StringDictionaryClient.h"
#include "Utils/Regexp.h"
#include "Utils/StringLike.h"
#include "LeafHostInfo.h"
Go to the source code of this file.
Namespaces | |
anonymous_namespace{StringDictionary.cpp} | |
Functions | |
int | anonymous_namespace{StringDictionary.cpp}::checked_open (const char *path, const bool recover) |
const uint64_t | anonymous_namespace{StringDictionary.cpp}::round_up_p2 (const uint64_t num) |
string_dict_hash_t | anonymous_namespace{StringDictionary.cpp}::hash_string (const std::string_view &str) |
template<class T > | |
void | anonymous_namespace{StringDictionary.cpp}::throw_encoding_error (std::string_view str, std::string_view folder) |
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 | |
bool | g_cache_string_hash {true} |
const int | anonymous_namespace{StringDictionary.cpp}::SYSTEM_PAGE_SIZE = omnisci::get_page_size() |
bool | g_enable_stringdict_parallel {false} |
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().
bool g_cache_string_hash {true} |
Definition at line 45 of file StringDictionary.cpp.
Referenced by CommandLineOptions::fillOptions(), Catalog_Namespace::Catalog::getMetadataForDictUnlocked(), and RowSetMemoryOwner::getOrAddStringDictProxy().
bool g_enable_stringdict_parallel {false} |
Definition at line 90 of file StringDictionary.cpp.
Referenced by CommandLineOptions::fillOptions(), and StringDictionary::getOrAddBulk().