~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/myisam/ha_myisam.h

  • Committer: Monty Taylor
  • Date: 2010-02-05 08:11:15 UTC
  • mfrom: (1283 build)
  • mto: (1273.13.43 fix_is)
  • mto: This revision was merged to the branch mainline in revision 1300.
  • Revision ID: mordred@inaugust.com-20100205081115-dr82nvrwv4lvw7sd
Merged trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 
25
25
#include <plugin/myisam/myisam.h>
26
26
 
27
 
#ifdef __cplusplus
28
 
extern "C" {
29
 
#endif
30
 
 
31
 
#ifdef __cplusplus
32
 
}
33
 
#endif
34
 
 
35
 
class ha_myisam: public Cursor
 
27
class ha_myisam: public drizzled::Cursor
36
28
{
37
29
  MI_INFO *file;
38
30
  char    *data_file_name, *index_file_name;
39
31
  bool can_enable_indexes;
40
32
  bool is_ordered;
41
 
  int repair(Session *session, MI_CHECK &param, bool optimize);
 
33
  int repair(drizzled::Session *session, MI_CHECK &param, bool optimize);
42
34
 
43
35
 public:
44
 
  ha_myisam(drizzled::plugin::StorageEngine &engine, TableShare &table_arg);
 
36
  ha_myisam(drizzled::plugin::StorageEngine &engine,
 
37
            drizzled::TableShare &table_arg);
45
38
  ~ha_myisam() {}
46
39
  Cursor *clone(drizzled::memory::Root *mem_root);
47
40
  const char *index_type(uint32_t key_number);
54
47
  int write_row(unsigned char * buf);
55
48
  int update_row(const unsigned char * old_data, unsigned char * new_data);
56
49
  int delete_row(const unsigned char * buf);
57
 
  int index_read_map(unsigned char *buf, const unsigned char *key, key_part_map keypart_map,
58
 
                     enum ha_rkey_function find_flag);
 
50
  int index_read_map(unsigned char *buf, const unsigned char *key, drizzled::key_part_map keypart_map,
 
51
                     enum drizzled::ha_rkey_function find_flag);
59
52
  int index_read_idx_map(unsigned char *buf, uint32_t index, const unsigned char *key,
60
 
                         key_part_map keypart_map,
61
 
                         enum ha_rkey_function find_flag);
62
 
  int index_read_last_map(unsigned char *buf, const unsigned char *key, key_part_map keypart_map);
 
53
                         drizzled::key_part_map keypart_map,
 
54
                         enum drizzled::ha_rkey_function find_flag);
 
55
  int index_read_last_map(unsigned char *buf, const unsigned char *key, drizzled::key_part_map keypart_map);
63
56
  int index_next(unsigned char * buf);
64
57
  int index_prev(unsigned char * buf);
65
58
  int index_first(unsigned char * buf);
71
64
  int restart_rnd_next(unsigned char *buf, unsigned char *pos);
72
65
  void position(const unsigned char *record);
73
66
  int info(uint);
74
 
  int extra(enum ha_extra_function operation);
75
 
  int extra_opt(enum ha_extra_function operation, uint32_t cache_size);
 
67
  int extra(enum drizzled::ha_extra_function operation);
 
68
  int extra_opt(enum drizzled::ha_extra_function operation, uint32_t cache_size);
76
69
  int reset(void);
77
 
  int external_lock(Session *session, int lock_type);
 
70
  int external_lock(drizzled::Session *session, int lock_type);
78
71
  int delete_all_rows(void);
79
72
  int disable_indexes(uint32_t mode);
80
73
  int enable_indexes(uint32_t mode);
81
74
  int indexes_are_disabled(void);
82
 
  void start_bulk_insert(ha_rows rows);
 
75
  void start_bulk_insert(drizzled::ha_rows rows);
83
76
  int end_bulk_insert();
84
 
  ha_rows records_in_range(uint32_t inx, key_range *min_key, key_range *max_key);
 
77
  drizzled::ha_rows records_in_range(uint32_t inx, drizzled::key_range *min_key, drizzled::key_range *max_key);
85
78
  virtual void get_auto_increment(uint64_t offset, uint64_t increment,
86
79
                                  uint64_t nb_desired_values,
87
80
                                  uint64_t *first_value,
90
83
  {
91
84
    return file;
92
85
  }
93
 
  int read_range_first(const key_range *start_key, const key_range *end_key,
 
86
  int read_range_first(const drizzled::key_range *start_key, const drizzled::key_range *end_key,
94
87
                       bool eq_range_arg, bool sorted);
95
88
  int read_range_next();
96
89
  int reset_auto_increment(uint64_t value);
101
94
  }
102
95
 
103
96
private:
104
 
  key_map keys_with_parts;
 
97
  drizzled::key_map keys_with_parts;
105
98
};
106
99
 
107
100
#endif /* PLUGIN_MYISAM_HA_MYISAM_H */