~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table_list.h

  • Committer: tdavies
  • Date: 2010-10-05 03:25:08 UTC
  • mto: (1816.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 1817.
  • Revision ID: tdavies@molly-20101005032508-pd1cg5nmxziov9wv
change in file: ../drizzled/base.h. Converted C structs key_range and KEY_MULTI_RANGE to C++ classes

Show diffs side-by-side

added added

removed removed

Lines of Context:
128
128
  /** link in a global list of all queries tables */
129
129
  TableList *next_global; 
130
130
  TableList **prev_global;
131
 
 
132
 
private:
133
131
  char *db;
134
 
 
135
 
public:
136
 
  const char *getSchemaName()
137
 
  {
138
 
    return db;
139
 
  }
140
 
 
141
 
  char **getSchemaNamePtr()
142
 
  {
143
 
    return &db;
144
 
  }
145
 
 
146
 
  void setSchemaName(char *arg)
147
 
  {
148
 
    db= arg;
149
 
  }
150
 
 
151
132
  const char *alias;
152
 
 
153
 
private:
154
133
  char *table_name;
155
 
 
156
 
public:
157
 
  const char *getTableName()
158
 
  {
159
 
    return table_name;
160
 
  }
161
 
 
162
 
  char **getTableNamePtr()
163
 
  {
164
 
    return &table_name;
165
 
  }
166
 
 
167
 
  void setTableName(char *arg)
168
 
  {
169
 
    table_name= arg;
170
 
  }
171
 
 
172
134
  char *option; ///< Used by cache index
173
135
  Item *on_expr; ///< Used with outer join
174
136
  Table *table; ///< opened table
397
359
   *   true found and reported an error.
398
360
   */
399
361
  bool process_index_hints(Table *table);
 
362
  /**
 
363
   * Creates a table definition cache key for this table entry.
 
364
   *
 
365
   * @param[out] Create key here (must be of size MAX_DBKEY_LENGTH)
 
366
   *
 
367
   * @note
 
368
   *
 
369
   * The table cache_key is created from:
 
370
   *   db_name + \0
 
371
   *   table_name + \0
 
372
   *
 
373
   * if the table is a tmp table, we add the following to make each tmp table
 
374
   * unique on the slave:
 
375
   *
 
376
   * 4 bytes for master thread id
 
377
   * 4 bytes pseudo thread id
 
378
   *
 
379
   * @retval
 
380
   *  Length of key
 
381
   */
 
382
  uint32_t create_table_def_key(char *key);
400
383
 
401
384
  friend std::ostream& operator<<(std::ostream& output, const TableList &list)
402
385
  {
527
510
    return on_expr_dep_tables;
528
511
  }
529
512
 
530
 
  void unlock_table_name();
531
 
  void unlock_table_names(TableList *last_table= NULL);
532
 
 
533
513
private:
534
514
 
535
515
  table_map dep_tables; ///< tables the table depends on