~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table/instance.h

  • Committer: Brian Aker
  • Date: 2010-10-14 18:32:09 UTC
  • mto: This revision was merged to the branch mainline in revision 1855.
  • Revision ID: brian@tangent.org-20101014183209-884iivwn1og2v3yd
Committing refactor of table out (this is part of the concurrency work).

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
  bool _has_variable_width;
36
36
 
37
37
public:
38
 
  Instance() :
39
 
    _share(message::Table::INTERNAL),
 
38
  Instance(TableIdentifier::Type type_arg) :
 
39
    _share(type_arg),
40
40
    _has_variable_width(false)
41
41
  {
42
42
  }
43
43
 
44
 
  Instance(Session *session, List<CreateField> &field_list);
 
44
  Table *getTable()
 
45
  {
 
46
    return this;
 
47
  }
45
48
 
46
49
  TableShare *getMutableShare(void)
47
50
  {
48
51
    return &_share;
49
52
  }
50
53
 
51
 
  void setShare(TableShare *)
52
 
  {
53
 
    assert(0);
54
 
  }
55
 
 
56
54
  const TableShare *getShare(void) const
57
55
  {
58
56
    return &_share;
59
57
  }
60
58
 
61
 
  bool hasShare() const { return true; }
62
 
 
63
 
  void release() {};
64
 
 
65
59
  bool hasVariableWidth() const
66
60
  {
67
61
    return _has_variable_width;
72
66
                               MI_COLUMNDEF **recinfo,
73
67
                               uint64_t options);
74
68
  void setup_tmp_table_column_bitmaps();
 
69
  void free_tmp_table(Session *session);
75
70
  bool open_tmp_table();
76
71
 
77
72
  void setVariableWidth()
79
74
    _has_variable_width= true;
80
75
  }
81
76
 
82
 
  ~Instance();
 
77
  ~Instance()
 
78
  {
 
79
    free_tmp_table(in_use);
 
80
  }
83
81
};
84
82
 
85
83
} /* namespace table */