~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table_share.h

Merge trunk changes and resolve conflicts

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
#include "drizzled/memory/root.h"
34
34
#include "drizzled/message/table.pb.h"
35
35
 
 
36
namespace drizzled
 
37
{
 
38
 
36
39
class TableShare
37
40
{
38
41
public:
169
172
 
170
173
  /* hash of field names (contains pointers to elements of field array) */
171
174
  HASH  name_hash;                      /* hash of field names */
172
 
  drizzled::memory::Root mem_root;
 
175
  memory::Root mem_root;
173
176
  TYPELIB keynames;                     /* Pointers to keynames */
174
177
  TYPELIB fieldnames;                   /* Pointer to fieldnames */
175
178
  TYPELIB *intervals;                   /* pointer to interval info */
207
210
  /* Max rows is a hint to HEAP during a create tmp table */
208
211
  uint64_t max_rows;
209
212
 
210
 
  drizzled::message::Table *table_proto;
 
213
  message::Table *table_proto;
211
214
public:
212
215
 
213
216
  /* This is only used in one location currently */
214
 
  inline void setTableProto(drizzled::message::Table *arg)
 
217
  inline void setTableProto(message::Table *arg)
215
218
  {
216
219
    assert(table_proto == NULL);
217
220
    table_proto= arg;
252
255
    max_rows= arg;
253
256
  }
254
257
 
255
 
  drizzled::plugin::StorageEngine *storage_engine;                      /* storage engine plugin */
256
 
  inline drizzled::plugin::StorageEngine *db_type() const       /* table_type for handler */
 
258
  plugin::StorageEngine *storage_engine;                        /* storage engine plugin */
 
259
  inline plugin::StorageEngine *db_type() const /* table_type for handler */
257
260
  {
258
261
    return storage_engine;
259
262
  }
260
 
  inline drizzled::plugin::StorageEngine *getEngine() const     /* table_type for handler */
 
263
  inline plugin::StorageEngine *getEngine() const       /* table_type for handler */
261
264
  {
262
265
    return storage_engine;
263
266
  }
405
408
            const char *new_path)
406
409
  {
407
410
    memset(this, 0, sizeof(TableShare));
408
 
    drizzled::memory::init_sql_alloc(&mem_root, TABLE_ALLOC_BLOCK_SIZE, 0);
 
411
    memory::init_sql_alloc(&mem_root, TABLE_ALLOC_BLOCK_SIZE, 0);
409
412
    table_category=         TABLE_CATEGORY_TEMPORARY;
410
413
    tmp_table=              INTERNAL_TMP_TABLE;
411
414
    db.str=                 (char*) key;
434
437
 
435
438
  void free_table_share()
436
439
  {
437
 
    drizzled::memory::Root new_mem_root;
 
440
    memory::Root new_mem_root;
438
441
    assert(ref_count == 0);
439
442
 
440
443
    /*
522
525
                              uint32_t key_length, uint32_t, int *error);
523
526
};
524
527
 
 
528
} /* namespace drizzled */
 
529
 
525
530
#endif /* DRIZZLED_TABLE_SHARE_H */