~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/haildb/haildb_engine.h

  • Committer: lbieber
  • Date: 2010-10-02 00:25:54 UTC
  • mfrom: (1804.1.2 build)
  • Revision ID: lbieber@orisndriz08-20101002002554-sf30ezteu701kzzu
Merge Stewart - Rename embedded_innodb to HailDB everywhere EXCEPT the plugin name 

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
17
17
*/
18
18
 
19
 
#ifndef PLUGIN_EMBEDDED_INNODB_EMBEDDED_INNODB_ENGINE_H
20
 
#define PLUGIN_EMBEDDED_INNODB_EMBEDDED_INNODB_ENGINE_H
 
19
#ifndef PLUGIN_HAILDB_HAILDB_ENGINE_H
 
20
#define PLUGIN_HAILDB_HAILDB_ENGINE_H
21
21
 
22
22
#include <drizzled/cursor.h>
23
23
#include <drizzled/atomics.h>
24
24
 
25
 
class EmbeddedInnoDBTableShare
 
25
class HailDBTableShare
26
26
{
27
27
public:
28
 
  EmbeddedInnoDBTableShare(const char* name, bool hidden_primary_key);
 
28
  HailDBTableShare(const char* name, bool hidden_primary_key);
29
29
 
30
30
  drizzled::THR_LOCK lock;
31
31
  int use_count;
36
36
  bool has_hidden_primary_key;
37
37
};
38
38
 
39
 
class EmbeddedInnoDBCursor: public drizzled::Cursor
 
39
class HailDBCursor: public drizzled::Cursor
40
40
{
41
41
public:
42
 
  EmbeddedInnoDBCursor(drizzled::plugin::StorageEngine &engine, drizzled::TableShare &table_arg);
43
 
  ~EmbeddedInnoDBCursor()
 
42
  HailDBCursor(drizzled::plugin::StorageEngine &engine, drizzled::TableShare &table_arg);
 
43
  ~HailDBCursor()
44
44
  {}
45
45
 
46
46
  /*
62
62
  int index_read(unsigned char *buf, const unsigned char *key_ptr,
63
63
                 uint32_t key_len, drizzled::ha_rkey_function find_flag);
64
64
 
65
 
  int innodb_index_read(unsigned char *buf,
 
65
  int haildb_index_read(unsigned char *buf,
66
66
                        const unsigned char *key_ptr,
67
67
                        uint32_t key_len,
68
68
                        drizzled::ha_rkey_function find_flag,
70
70
 
71
71
  uint32_t calculate_key_len(uint32_t key_position,
72
72
                             drizzled::key_part_map keypart_map_arg);
73
 
  int innodb_index_read_map(unsigned char * buf,
 
73
  int haildb_index_read_map(unsigned char * buf,
74
74
                            const unsigned char *key,
75
75
                            drizzled::key_part_map keypart_map,
76
76
                            drizzled::ha_rkey_function find_flag,
94
94
  int doUpdateRecord(const unsigned char * old_data, unsigned char * new_data);
95
95
  int extra(drizzled::ha_extra_function operation);
96
96
 
97
 
  EmbeddedInnoDBTableShare *get_share(const char *table_name,
98
 
                                      bool has_hidden_primary_key,
99
 
                                      int *rc);
 
97
  HailDBTableShare *get_share(const char *table_name,
 
98
                              bool has_hidden_primary_key,
 
99
                              int *rc);
100
100
  int free_share();
101
101
 
102
 
  EmbeddedInnoDBTableShare *share;
 
102
  HailDBTableShare *share;
103
103
  drizzled::THR_LOCK_DATA lock;  /* lock for store_lock. this is ass. */
104
104
  drizzled::THR_LOCK_DATA **store_lock(drizzled::Session *,
105
105
                                       drizzled::THR_LOCK_DATA **to,
130
130
  bool in_table_scan;
131
131
};
132
132
 
133
 
int get_innodb_system_table_message(const char* table_name, drizzled::message::Table *table_message);
134
 
 
135
 
 
136
 
#endif /* PLUGIN_EMBEDDED_INNODB_EMBEDDED_INNODB_ENGINE_H */
 
133
int get_haildb_system_table_message(const char* table_name, drizzled::message::Table *table_message);
 
134
 
 
135
#endif /* PLUGIN_HAILDB_HAILDB_ENGINE_H */