OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DictDescriptor Struct Reference

Descriptor for a dictionary for a string columne. More...

#include <DictDescriptor.h>

+ Collaboration diagram for DictDescriptor:

Public Member Functions

 DictDescriptor (DictRef dict_ref, const std::string &name, int nbits, bool shared, const int rc, const std::string &fname, bool temp)
 
 DictDescriptor (int db_id, int dict_id, const std::string &name, int nbits, bool shared, const int rc, const std::string &fname, bool temp)
 

Public Attributes

DictRef dictRef
 
std::string dictName
 
int dictNBits
 
bool dictIsShared
 
std::string dictFolderPath
 
int refcount
 
bool dictIsTemp
 
std::shared_ptr< StringDictionarystringDict
 
std::shared_ptr< std::mutex > string_dict_mutex
 

Detailed Description

Descriptor for a dictionary for a string columne.

DictDescriptor

Definition at line 33 of file DictDescriptor.h.

Constructor & Destructor Documentation

DictDescriptor::DictDescriptor ( DictRef  dict_ref,
const std::string &  name,
int  nbits,
bool  shared,
const int  rc,
const std::string &  fname,
bool  temp 
)
inline

Definition at line 43 of file DictDescriptor.h.

50  : dictRef(dict_ref)
51  , dictName(name)
52  , dictNBits(nbits)
53  , dictIsShared(shared)
54  , dictFolderPath(fname)
55  , refcount(rc)
56  , dictIsTemp(temp)
57  , stringDict(nullptr)
58  , string_dict_mutex(std::make_shared<std::mutex>()) {}
std::string dictFolderPath
std::shared_ptr< std::mutex > string_dict_mutex
std::shared_ptr< StringDictionary > stringDict
std::string dictName
string name
Definition: setup.in.py:72
DictDescriptor::DictDescriptor ( int  db_id,
int  dict_id,
const std::string &  name,
int  nbits,
bool  shared,
const int  rc,
const std::string &  fname,
bool  temp 
)
inline

Definition at line 60 of file DictDescriptor.h.

References dict_ref_t::dbId, dict_ref_t::dictId, and dictRef.

68  : dictName(name)
69  , dictNBits(nbits)
70  , dictIsShared(shared)
71  , dictFolderPath(fname)
72  , refcount(rc)
73  , dictIsTemp(temp)
74  , stringDict(nullptr)
75  , string_dict_mutex(std::make_shared<std::mutex>()) {
76  dictRef.dbId = db_id;
77  dictRef.dictId = dict_id;
78  }
std::string dictFolderPath
std::shared_ptr< std::mutex > string_dict_mutex
std::shared_ptr< StringDictionary > stringDict
std::string dictName
int32_t dictId
Definition: DictRef.h:14
int32_t dbId
Definition: DictRef.h:13
string name
Definition: setup.in.py:72

Member Data Documentation

std::string DictDescriptor::dictFolderPath
bool DictDescriptor::dictIsShared

Definition at line 37 of file DictDescriptor.h.

bool DictDescriptor::dictIsTemp

Definition at line 40 of file DictDescriptor.h.

Referenced by Catalog_Namespace::Catalog::doTruncateTable().

std::string DictDescriptor::dictName

Definition at line 35 of file DictDescriptor.h.

int DictDescriptor::dictNBits

Definition at line 36 of file DictDescriptor.h.

int DictDescriptor::refcount

Definition at line 39 of file DictDescriptor.h.

std::shared_ptr<std::mutex> DictDescriptor::string_dict_mutex

Definition at line 42 of file DictDescriptor.h.


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