~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/heap/ha_heap.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:
27
27
typedef unsigned char *HEAP_PTR;
28
28
 
29
29
 
30
 
class ha_heap: public Cursor
 
30
class ha_heap: public drizzled::Cursor
31
31
{
32
32
  HP_INFO *file;
33
 
  key_map btree_keys;
 
33
  drizzled::key_map btree_keys;
34
34
  /* number of records changed since last statistics update */
35
35
  uint32_t    records_changed;
36
36
  uint32_t    key_stat_version;
37
37
  bool internal_table;
38
38
public:
39
 
  ha_heap(drizzled::plugin::StorageEngine &engine, TableShare &table);
 
39
  ha_heap(drizzled::plugin::StorageEngine &engine, drizzled::TableShare &table);
40
40
  ~ha_heap() {}
41
41
  Cursor *clone(drizzled::memory::Root *mem_root);
42
42
 
43
43
  const char *index_type(uint32_t inx);
44
 
  enum row_type get_row_type() const;
45
 
  const key_map *keys_to_use_for_scanning() { return &btree_keys; }
 
44
  drizzled::row_type get_row_type() const;
 
45
  const drizzled::key_map *keys_to_use_for_scanning() { return &btree_keys; }
46
46
  double scan_time()
47
47
  { return (double) (stats.records+stats.deleted) / 20.0+10; }
48
48
  double read_time(uint32_t, uint32_t,
49
 
                   ha_rows rows)
 
49
                   drizzled::ha_rows rows)
50
50
  { return (double) rows /  20.0+1; }
51
51
 
52
52
  int open(const char *name, int mode, uint32_t test_if_locked);
60
60
                                  uint64_t *first_value,
61
61
                                  uint64_t *nb_reserved_values);
62
62
  int index_read_map(unsigned char * buf, const unsigned char * key,
63
 
                     key_part_map keypart_map,
64
 
                     enum ha_rkey_function find_flag);
 
63
                     drizzled::key_part_map keypart_map,
 
64
                     enum drizzled::ha_rkey_function find_flag);
65
65
  int index_read_last_map(unsigned char *buf, const unsigned char *key,
66
 
                          key_part_map keypart_map);
 
66
                          drizzled::key_part_map keypart_map);
67
67
  int index_read_idx_map(unsigned char * buf, uint32_t index,
68
68
                         const unsigned char * key,
69
 
                         key_part_map keypart_map,
70
 
                         enum ha_rkey_function find_flag);
 
69
                         drizzled::key_part_map keypart_map,
 
70
                         enum drizzled::ha_rkey_function find_flag);
71
71
  int index_next(unsigned char * buf);
72
72
  int index_prev(unsigned char * buf);
73
73
  int index_first(unsigned char * buf);
77
77
  int rnd_pos(unsigned char * buf, unsigned char *pos);
78
78
  void position(const unsigned char *record);
79
79
  int info(uint);
80
 
  int extra(enum ha_extra_function operation);
 
80
  int extra(enum drizzled::ha_extra_function operation);
81
81
  int reset();
82
82
  int delete_all_rows(void);
83
83
  int disable_indexes(uint32_t mode);
84
84
  int enable_indexes(uint32_t mode);
85
85
  int indexes_are_disabled(void);
86
 
  ha_rows records_in_range(uint32_t inx, key_range *min_key, key_range *max_key);
 
86
  drizzled::ha_rows records_in_range(uint32_t inx,
 
87
                                     drizzled::key_range *min_key,
 
88
                                     drizzled::key_range *max_key);
87
89
  void drop_table(const char *name);
88
90
 
89
91
  int cmp_ref(const unsigned char *ref1, const unsigned char *ref2);