22 #include <drizzled/cursor.h>
23 #include <drizzled/thr_lock.h>
26 typedef unsigned char *HEAP_PTR;
32 uint32_t records_changed;
33 uint32_t key_stat_version;
40 const char *index_type(uint32_t inx);
43 {
return (
double) (stats.records+stats.deleted) / 20.0+10; }
44 double read_time(uint32_t, uint32_t,
45 drizzled::ha_rows rows)
46 {
return (
double) rows / 20.0+1; }
50 void set_keys_for_scanning(
void);
51 int doInsertRecord(
unsigned char * buf);
52 int doUpdateRecord(
const unsigned char * old_data,
unsigned char * new_data);
53 int doDeleteRecord(
const unsigned char * buf);
54 virtual void get_auto_increment(uint64_t offset, uint64_t increment,
55 uint64_t nb_desired_values,
56 uint64_t *first_value,
57 uint64_t *nb_reserved_values);
59 drizzled::key_part_map keypart_map,
60 enum drizzled::ha_rkey_function find_flag);
62 drizzled::key_part_map keypart_map);
64 const unsigned char * key,
65 drizzled::key_part_map keypart_map,
66 enum drizzled::ha_rkey_function find_flag);
67 int index_next(
unsigned char * buf);
68 int index_prev(
unsigned char * buf);
69 int index_first(
unsigned char * buf);
70 int index_last(
unsigned char * buf);
72 int rnd_next(
unsigned char *buf);
73 int rnd_pos(
unsigned char * buf,
unsigned char *pos);
74 void position(
const unsigned char *record);
76 int extra(
enum drizzled::ha_extra_function operation);
79 int disable_indexes(uint32_t mode);
80 int enable_indexes(uint32_t mode);
81 int indexes_are_disabled(
void);
82 drizzled::ha_rows records_in_range(uint32_t inx,
87 int cmp_ref(
const unsigned char *ref1,
const unsigned char *ref2);
90 file->getShare()->auto_increment= value;
94 void update_key_stats();
int doStartTableScan(bool scan)
int delete_all_rows(void)
int index_read_last_map(unsigned char *buf, const unsigned char *key, drizzled::key_part_map keypart_map)
The following functions works like index_read, but it find the last row with the current key value or...
int reset_auto_increment(uint64_t value)
int index_read_idx_map(unsigned char *buf, uint32_t index, const unsigned char *key, drizzled::key_part_map keypart_map, enum drizzled::ha_rkey_function find_flag)
Positions an index cursor to the index specified in the handle. Fetches the row if available...
int index_read_map(unsigned char *buf, const unsigned char *key, drizzled::key_part_map keypart_map, enum drizzled::ha_rkey_function find_flag)
Positions an index cursor to the index specified in the handle. Fetches the row if available...