~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/key.h

Merge Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
#include "drizzled/sql_string.h"
31
31
#include "drizzled/handler_structs.h"
32
32
 
 
33
namespace drizzled
 
34
{
 
35
 
 
36
namespace memory { class Root; }
 
37
 
33
38
class Item;
34
39
class MyBitmap;
35
 
namespace drizzled { namespace memory { class Root; } }
36
40
 
37
 
class Key :public drizzled::memory::SqlAlloc {
 
41
class Key :public memory::SqlAlloc {
38
42
public:
39
43
  enum Keytype { PRIMARY, UNIQUE, MULTIPLE, FOREIGN_KEY};
40
44
  enum Keytype type;
93
97
bool is_key_used(Table *table, uint32_t idx, const MyBitmap *fields);
94
98
int key_cmp(KEY_PART_INFO *key_part, const unsigned char *key, uint32_t key_length);
95
99
extern "C" int key_rec_cmp(void *key_info, unsigned char *a, unsigned char *b);
 
100
 
 
101
} /* namespace drizzled */
 
102
 
96
103
#endif /* DRIZZLED_KEY_H */