~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table.h

  • Committer: Monty Taylor
  • Date: 2009-05-08 19:27:21 UTC
  • mto: This revision was merged to the branch mainline in revision 1009.
  • Revision ID: mordred@inaugust.com-20090508192721-glbsg850k7wqp1rd
Further reversion of P.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
#include <drizzled/lex_string.h>
34
34
#include <drizzled/table_list.h>
35
35
#include <drizzled/table_share.h>
36
 
#include <bitset>
37
36
 
38
37
class Item;
39
38
class Item_subselect;
95
94
 
96
95
  /* For TMP tables, should be pulled out as a class */
97
96
  void updateCreateInfo(HA_CREATE_INFO *create_info);
98
 
  void setup_tmp_table_column_bitmaps();
 
97
  void setup_tmp_table_column_bitmaps(unsigned char *bitmaps);
99
98
  bool create_myisam_tmp_table(KEY *keyinfo,
100
99
                               MI_COLUMNDEF *start_recinfo,
101
100
                               MI_COLUMNDEF **recinfo,
163
162
  const char    *alias;                   /* alias or table name */
164
163
  unsigned char         *null_flags;
165
164
  my_bitmap_map *bitmap_init_value;
166
 
  std::bitset<MAX_FIELDS> def_read_set, def_write_set, tmp_set; /* containers */
167
 
  std::bitset<MAX_FIELDS> *read_set, *write_set;                /* Active column sets */
 
165
  MY_BITMAP     def_read_set, def_write_set, tmp_set; /* containers */
 
166
  MY_BITMAP     *read_set, *write_set;          /* Active column sets */
168
167
  /*
169
168
   The ID of the query that opened and is using this table. Has different
170
169
   meanings depending on the table type.
291
290
  void reset_item_list(List<Item> *item_list) const;
292
291
  void clear_column_bitmaps(void);
293
292
  void prepare_for_position(void);
294
 
  void mark_columns_used_by_index_no_reset(uint32_t index, std::bitset<MAX_FIELDS> *map);
 
293
  void mark_columns_used_by_index_no_reset(uint32_t index, MY_BITMAP *map);
295
294
  void mark_columns_used_by_index(uint32_t index);
296
295
  void restore_column_maps_after_mark_index();
297
296
  void mark_auto_increment_column(void);
298
297
  void mark_columns_needed_for_update(void);
299
298
  void mark_columns_needed_for_delete(void);
300
299
  void mark_columns_needed_for_insert(void);
301
 
  inline void column_bitmaps_set(std::bitset<MAX_FIELDS> *read_set_arg,
302
 
                                 std::bitset<MAX_FIELDS> *write_set_arg)
 
300
  inline void column_bitmaps_set(MY_BITMAP *read_set_arg,
 
301
                                 MY_BITMAP *write_set_arg)
303
302
  {
304
303
    read_set= read_set_arg;
305
304
    write_set= write_set_arg;
306
305
    if (file)
307
306
      file->column_bitmaps_signal();
308
307
  }
309
 
  inline void column_bitmaps_set_no_signal(std::bitset<MAX_FIELDS> *read_set_arg,
310
 
                                           std::bitset<MAX_FIELDS> *write_set_arg)
 
308
  inline void column_bitmaps_set_no_signal(MY_BITMAP *read_set_arg,
 
309
                                           MY_BITMAP *write_set_arg)
311
310
  {
312
311
    read_set= read_set_arg;
313
312
    write_set= write_set_arg;
314
313
  }
315
314
 
316
 
  void restore_column_map(std::bitset<MAX_FIELDS> *old);
 
315
  void restore_column_map(my_bitmap_map *old);
317
316
 
318
 
  std::bitset<MAX_FIELDS> *use_all_columns(std::bitset<MAX_FIELDS> *bitmap);
 
317
  my_bitmap_map *use_all_columns(MY_BITMAP *bitmap);
319
318
  inline void use_all_columns()
320
319
  {
321
320
    column_bitmaps_set(&s->all_set, &s->all_set);