~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/structs.h

Remove dead memset call.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
class Table;
40
40
class Field;
41
41
 
42
 
typedef struct st_keyfile_info {        /* used with ha_info() */
43
 
  unsigned char ref[MAX_REFLENGTH];             /* Pointer to current row */
44
 
  unsigned char dupp_ref[MAX_REFLENGTH];        /* Pointer to dupp row */
45
 
  uint32_t ref_length;                  /* Length of ref (1-8) */
46
 
  uint32_t block_size;                  /* index block size */
47
 
  int filenr;                           /* (uniq) filenr for table */
48
 
  ha_rows records;                      /* Records i datafilen */
49
 
  ha_rows deleted;                      /* Deleted records */
50
 
  uint64_t data_file_length;            /* Length off data file */
51
 
  uint64_t max_data_file_length;        /* Length off data file */
52
 
  uint64_t index_file_length;
53
 
  uint64_t max_index_file_length;
54
 
  uint64_t delete_length;               /* Free bytes */
55
 
  uint64_t auto_increment_value;
56
 
  int errkey,sortkey;                   /* Last errorkey and sorted by */
57
 
  time_t create_time;                   /* When table was created */
58
 
  time_t check_time;
59
 
  time_t update_time;
60
 
  uint64_t mean_rec_length;             /* physical reclength */
61
 
} KEYFILE_INFO;
62
 
 
63
 
 
64
 
typedef struct st_key_part_info {       /* Info about a key part */
 
42
struct KeyPartInfo {    /* Info about a key part */
65
43
  Field *field;
66
44
  unsigned int  offset;                         /* offset in record (from 0) */
67
45
  unsigned int  null_offset;                    /* Offset to null_bit in record */
77
55
  */
78
56
  uint16_t store_length;
79
57
  uint16_t key_type;
 
58
private:
 
59
public:
 
60
  uint16_t getKeyType() const
 
61
  {
 
62
    return key_type;
 
63
  }
80
64
  uint16_t fieldnr;                     /* Fieldnum in UNIREG (1,2,3,...) */
81
65
  uint16_t key_part_flag;                       /* 0 or HA_REVERSE_SORT */
82
66
  uint8_t type;
83
67
  uint8_t null_bit;                     /* Position to null_bit */
84
 
} KEY_PART_INFO ;
85
 
 
86
 
 
87
 
typedef struct st_key {
 
68
};
 
69
 
 
70
 
 
71
struct KeyInfo {
88
72
  unsigned int  key_length;             /* Tot length of key */
89
73
  enum  ha_key_alg algorithm;
90
74
  unsigned long flags;                  /* dupp key and pack flags */
92
76
  uint32_t  extra_length;
93
77
  unsigned int usable_key_parts;        /* Should normally be = key_parts */
94
78
  uint32_t  block_size;
95
 
  KEY_PART_INFO *key_part;
 
79
  KeyPartInfo *key_part;
96
80
  char  *name;                          /* Name of key */
97
81
  /*
98
82
    Array of AVG(#records with the same field value) for 1st ... Nth key part.
102
86
  ulong *rec_per_key;
103
87
  Table *table;
104
88
  LEX_STRING comment;
105
 
} KEY;
 
89
};
106
90
 
107
91
 
108
92
class JoinTable;
124
108
  }
125
109
};
126
110
 
127
 
struct st_read_record;                          /* For referense later */
128
111
class Session;
129
112
class Cursor;
130
113
namespace optimizer { class SqlSelect; }
131
114
 
132
 
typedef struct st_read_record {                 /* Parameter to read_record */
133
 
  Table *table;                 /* Head-form */
134
 
  Cursor *cursor;
135
 
  Table **forms;                        /* head and ref forms */
136
 
  int (*read_record)(struct st_read_record *);
137
 
  Session *session;
138
 
  optimizer::SqlSelect *select;
139
 
  uint32_t cache_records;
140
 
  uint32_t ref_length,struct_length,reclength,rec_cache_size,error_offset;
141
 
  uint32_t index;
142
 
  unsigned char *ref_pos;                               /* pointer to form->refpos */
143
 
  unsigned char *record;
144
 
  unsigned char *rec_buf;                /* to read field values  after filesort */
145
 
  unsigned char *cache,*cache_pos,*cache_end,*read_positions;
146
 
  internal::IO_CACHE *io_cache;
147
 
  bool print_error, ignore_not_found_rows;
148
 
  JoinTable *do_insideout_scan;
149
 
} READ_RECORD;
150
 
 
151
115
typedef int *(*update_var)(Session *, struct drizzle_show_var *);
152
116
 
153
117
} /* namespace drizzled */