OmniSciDB  04ee39c94c
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, std::string &fname, bool temp)
 
 DictDescriptor (int db_id, int dict_id, const std::string &name, int nbits, bool shared, const int rc, 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
 

Detailed Description

Descriptor for a dictionary for a string columne.

DictDescriptor

Definition at line 33 of file DictDescriptor.h.

Constructor & Destructor Documentation

◆ DictDescriptor() [1/2]

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

Definition at line 42 of file DictDescriptor.h.

49  : dictRef(dict_ref)
50  , dictName(name)
51  , dictNBits(nbits)
52  , dictIsShared(shared)
53  , dictFolderPath(fname)
54  , refcount(rc)
55  , dictIsTemp(temp)
56  , stringDict(nullptr) {}
std::string dictFolderPath
std::shared_ptr< StringDictionary > stringDict
std::string dictName

◆ DictDescriptor() [2/2]

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

Definition at line 58 of file DictDescriptor.h.

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

66  : dictName(name)
67  , dictNBits(nbits)
68  , dictIsShared(shared)
69  , dictFolderPath(fname)
70  , refcount(rc)
71  , dictIsTemp(temp)
72  , stringDict(nullptr) {
73  dictRef.dbId = db_id;
74  dictRef.dictId = dict_id;
75  }
std::string dictFolderPath
std::shared_ptr< StringDictionary > stringDict
std::string dictName
int32_t dictId
Definition: DictRef.h:10
int32_t dbId
Definition: DictRef.h:9

Member Data Documentation

◆ dictFolderPath

std::string DictDescriptor::dictFolderPath

◆ dictIsShared

bool DictDescriptor::dictIsShared

Definition at line 37 of file DictDescriptor.h.

◆ dictIsTemp

bool DictDescriptor::dictIsTemp

Definition at line 40 of file DictDescriptor.h.

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

◆ dictName

std::string DictDescriptor::dictName

Definition at line 35 of file DictDescriptor.h.

◆ dictNBits

int DictDescriptor::dictNBits

Definition at line 36 of file DictDescriptor.h.

Referenced by MapDHandler::fixup_row_descriptor(), and TEST().

◆ dictRef

◆ refcount

int DictDescriptor::refcount

Definition at line 39 of file DictDescriptor.h.

◆ stringDict


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