~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/structs.h

  • Committer: Brian Aker
  • Date: 2010-05-18 22:31:57 UTC
  • mto: This revision was merged to the branch mainline in revision 1540.
  • Revision ID: brian@gaz-20100518223157-k0i4yxv6t03yrwyk
JoinCache rename.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
class Table;
40
40
class Field;
41
41
 
42
 
class KeyPartInfo 
43
 
{       /* Info about a key part */
44
 
public:
 
42
struct KeyPartInfo {    /* Info about a key part */
45
43
  Field *field;
46
44
  unsigned int  offset;                         /* offset in record (from 0) */
47
45
  unsigned int  null_offset;                    /* Offset to null_bit in record */
57
55
  */
58
56
  uint16_t store_length;
59
57
  uint16_t key_type;
60
 
private:
61
 
public:
62
 
  uint16_t getKeyType() const
63
 
  {
64
 
    return key_type;
65
 
  }
66
58
  uint16_t fieldnr;                     /* Fieldnum in UNIREG (1,2,3,...) */
67
59
  uint16_t key_part_flag;                       /* 0 or HA_REVERSE_SORT */
68
60
  uint8_t type;
70
62
};
71
63
 
72
64
 
73
 
class KeyInfo 
74
 
{
75
 
public:
 
65
struct KeyInfo {
76
66
  unsigned int  key_length;             /* Tot length of key */
77
67
  enum  ha_key_alg algorithm;
78
68
  unsigned long flags;                  /* dupp key and pack flags */
95
85
 
96
86
class JoinTable;
97
87
 
98
 
class RegInfo 
99
 
{
100
 
public:         /* Extra info about reg */
 
88
struct RegInfo {                /* Extra info about reg */
101
89
  JoinTable *join_tab;  /* Used by SELECT() */
102
90
  enum thr_lock_type lock_type;         /* How database is used */
103
91
  bool not_exists_optimize;