36 #ifndef __INDEX_DESC_H 37 #define __INDEX_DESC_H 94 string name,
const int fieldcnt,
95 const unsigned* fields,
96 bool unique =
true,
bool primary =
false,
97 bool rmapholder =
false);
140 return (_rmapholder);
144 return (*&_maxkeysize);
164 int key_index(
const unsigned index)
const;
176 #endif // __INDEX_DESC_H table_desc_t * _table
Definition: index_desc.h:65
w_rc_t load_stid(ss_m *db, StoreID cat_stid)
Definition: index_desc.cpp:99
int key_index(const unsigned index) const
Definition: index_desc.cpp:76
Definition: table_desc.h:122
index_desc_t(table_desc_t *table, string name, const int fieldcnt, const unsigned *fields, bool unique=true, bool primary=false, bool rmapholder=false)
Definition: index_desc.cpp:42
ss_m * db()
Definition: table_desc.h:258
void set_keysize(const unsigned sz)
Definition: index_desc.h:147
bool is_key_index(unsigned i)
Definition: index_desc.h:152
bool _rmapholder
Definition: index_desc.h:78
unsigned _maxkeysize
Definition: index_desc.h:81
Header file for lintel::Atomic class.
uint32_t StoreID
Definition: basics.h:47
unsigned _field_count
Definition: index_desc.h:72
int get_keysize()
Definition: index_desc.h:143
bool is_primary() const
Definition: index_desc.h:135
void print_desc(ostream &os)
Definition: index_desc.cpp:90
unsigned * _key
Definition: index_desc.h:71
T atomic_exchange(T *object, C desired)
Definition: AtomicCounter.hpp:396
unsigned field_count() const
Definition: index_desc.h:105
bool _unique
Definition: index_desc.h:74
This is the SHORE Storage Manager API.
Definition: sm.h:405
bool _primary
Definition: index_desc.h:75
~index_desc_t()
Definition: index_desc.cpp:64
bool is_fid_valid() const
Definition: index_desc.h:113
bool matches_name(const char *name)
Definition: index_desc.cpp:72
Return code for most functions and methods.
Definition: w_rc.h:87
Definition: index_desc.h:60
tatas_lock _keydesc_lock
Definition: index_desc.h:84
StoreID & stid()
Definition: index_desc.h:117
bool _nolock
Definition: index_desc.h:76
A test-and-test-and-set spinlock.
Definition: tatas.h:25
void set_stid(StoreID const &stid)
Definition: index_desc.h:121
string _name
Definition: index_desc.h:69
bool is_rmapholder() const
Definition: index_desc.h:139
: Descriptors for Shore files/indexes, and structures that help in keeping track of the created files...
const unsigned int MAX_KEYDESC_LEN
Definition: file_desc.h:46
bool _latchless
Definition: index_desc.h:77
StoreID _stid
Definition: index_desc.h:67
string name() const
Definition: index_desc.h:101
table_desc_t * table() const
Definition: index_desc.h:109
char _keydesc[MAX_KEYDESC_LEN]
Definition: index_desc.h:83
bool is_unique() const
Definition: index_desc.h:131