~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/heap/ha_heap.h

  • Committer: Eric Day
  • Date: 2009-10-31 21:53:33 UTC
  • mfrom: (1200 staging)
  • mto: This revision was merged to the branch mainline in revision 1202.
  • Revision ID: eday@oddments.org-20091031215333-j94bjoanwmi68p6f
Merged trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 
16
16
 
17
17
 
18
 
/* class for the the heap handler */
19
 
 
20
 
#ifndef STORAGE_HEAP_HA_HEAP_H
21
 
#define STORAGE_HEAP_HA_HEAP_H
22
 
 
23
 
#include <drizzled/handler.h>
 
18
/* class for the the heap Cursor */
 
19
 
 
20
#ifndef PLUGIN_HEAP_HA_HEAP_H
 
21
#define PLUGIN_HEAP_HA_HEAP_H
 
22
 
 
23
#include <drizzled/cursor.h>
24
24
#include <mysys/thr_lock.h>
25
25
 
26
26
typedef struct st_heap_info HP_INFO;
27
27
typedef unsigned char *HEAP_PTR;
28
28
 
29
29
 
30
 
class ha_heap: public handler
 
30
class ha_heap: public Cursor
31
31
{
32
32
  HP_INFO *file;
33
33
  key_map btree_keys;
38
38
public:
39
39
  ha_heap(drizzled::plugin::StorageEngine *engine, TableShare *table);
40
40
  ~ha_heap() {}
41
 
  handler *clone(MEM_ROOT *mem_root);
 
41
  Cursor *clone(MEM_ROOT *mem_root);
42
42
 
43
43
  const char *index_type(uint32_t inx);
44
44
  enum row_type get_row_type() const;
88
88
  int info(uint);
89
89
  int extra(enum ha_extra_function operation);
90
90
  int reset();
91
 
  int external_lock(Session *session, int lock_type);
92
91
  int delete_all_rows(void);
93
92
  int disable_indexes(uint32_t mode);
94
93
  int enable_indexes(uint32_t mode);
103
102
  void update_key_stats();
104
103
};
105
104
 
106
 
#endif /* STORAGE_HEAP_HA_HEAP_H */
 
105
#endif /* PLUGIN_HEAP_HA_HEAP_H */