OmniSciDB  06b3bd477c
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
StringDictionaryProxy.cpp File Reference
#include "StringDictionaryProxy.h"
#include "../Shared/sqltypes.h"
#include "../Utils/Regexp.h"
#include "../Utils/StringLike.h"
#include "Shared/Logger.h"
#include "Shared/thread_count.h"
#include "StringDictionary.h"
#include <sys/fcntl.h>
#include <thread>
+ Include dependency graph for StringDictionaryProxy.cpp:

Go to the source code of this file.




int32_t truncate_to_generation (const int32_t id, const size_t generation)
bool anonymous_namespace{StringDictionaryProxy.cpp}::is_like (const std::string &str, const std::string &pattern, const bool icase, const bool is_simple, const char escape)
bool anonymous_namespace{StringDictionaryProxy.cpp}::do_compare (const std::string &str, const std::string &pattern, const std::string &comp_operator)
bool anonymous_namespace{StringDictionaryProxy.cpp}::is_regexp_like (const std::string &str, const std::string &pattern, const char escape)

Function Documentation

int32_t truncate_to_generation ( const int32_t  id,
const size_t  generation 

Definition at line 33 of file StringDictionaryProxy.cpp.

References CHECK_GE, and StringDictionary::INVALID_STR_ID.

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

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

+ Here is the caller graph for this function: