~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table.h

  • Committer: Eric Herman
  • Date: 2008-12-06 19:42:46 UTC
  • mto: (656.1.6 devel)
  • mto: This revision was merged to the branch mainline in revision 665.
  • Revision ID: eric@mysql.com-20081206194246-5cdexuu81i366eek
removed trailing whitespace with simple script:

for file in $(find . -name "*.c") $(find . -name "*.cc") $(find . -name "*.h"); do ruby -pe 'gsub(/\s+$/, $/)' < $file > $file.out; mv $file.out $file; done;

Show diffs side-by-side

added added

removed removed

Lines of Context:
116
116
  uint32_t   version, mysql_version;
117
117
  uint32_t   timestamp_offset;          /* Set to offset+1 of record */
118
118
  uint32_t   reclength;                 /* Recordlength */
119
 
  uint32_t   stored_rec_length;         /* Stored record length 
 
119
  uint32_t   stored_rec_length;         /* Stored record length
120
120
                                           (no generated-only virtual fields) */
121
121
 
122
122
  plugin_ref db_plugin;                 /* storage engine plugin */
136
136
  uint32_t key_block_size;                      /* create key_block_size, if used */
137
137
  uint32_t null_bytes, last_null_bit_pos;
138
138
  uint32_t fields;                              /* Number of fields */
139
 
  uint32_t stored_fields;                   /* Number of stored fields 
 
139
  uint32_t stored_fields;                   /* Number of stored fields
140
140
                                           (i.e. without generated-only ones) */
141
141
  uint32_t rec_buff_length;                 /* Size of table->record[] buffer */
142
142
  uint32_t keys, key_parts;
251
251
 
252
252
bool create_myisam_from_heap(Session *session, Table *table,
253
253
                             MI_COLUMNDEF *start_recinfo,
254
 
                             MI_COLUMNDEF **recinfo, 
 
254
                             MI_COLUMNDEF **recinfo,
255
255
                             int error, bool ignore_last_dupp_key_error);
256
256
 
257
257
class Table {
275
275
  inline bool isNullFieldFirst() { return s->null_field_first; }
276
276
  inline bool isDatabaseLowByteFirst() { return s->db_low_byte_first; }         /* Portable row format */
277
277
  inline bool isCrashed() { return s->crashed; }
278
 
  inline bool isNameLock() { return s->name_lock; } 
 
278
  inline bool isNameLock() { return s->name_lock; }
279
279
  inline bool isReplaceWithNameLock() { return s->replace_with_name_lock; }
280
280
  inline bool isWaitingOnCondition() { return s->waiting_on_cond; }                 /* Protection against free */
281
281
 
282
282
  /* For TMP tables, should be pulled out as a class */
283
283
  void updateCreateInfo(HA_CREATE_INFO *create_info);
284
284
  void setup_tmp_table_column_bitmaps(unsigned char *bitmaps);
285
 
  bool create_myisam_tmp_table(KEY *keyinfo, 
 
285
  bool create_myisam_tmp_table(KEY *keyinfo,
286
286
                               MI_COLUMNDEF *start_recinfo,
287
 
                               MI_COLUMNDEF **recinfo, 
 
287
                               MI_COLUMNDEF **recinfo,
288
288
                               uint64_t options);
289
289
  void free_tmp_table(Session *session);
290
290
  bool open_tmp_table();
310
310
  unsigned char *write_row_record;              /* Used as optimisation in
311
311
                                           Session::write_row */
312
312
  unsigned char *insert_values;                  /* used by INSERT ... UPDATE */
313
 
  /* 
314
 
    Map of keys that can be used to retrieve all data from this table 
 
313
  /*
 
314
    Map of keys that can be used to retrieve all data from this table
315
315
    needed by the query without reading the row.
316
316
  */
317
317
  key_map covering_keys;
320
320
    A set of keys that can be used in the query that references this
321
321
    table.
322
322
 
323
 
    All indexes disabled on the table's TABLE_SHARE (see Table::s) will be 
 
323
    All indexes disabled on the table's TABLE_SHARE (see Table::s) will be
324
324
    subtracted from this set upon instantiation. Thus for any Table t it holds
325
 
    that t.keys_in_use_for_query is a subset of t.s.keys_in_use. Generally we 
 
325
    that t.keys_in_use_for_query is a subset of t.s.keys_in_use. Generally we
326
326
    must not introduce any new keys here (see setup_tables).
327
327
 
328
328
    The set is implemented as a bitmap.
366
366
  */
367
367
  query_id_t    query_id;
368
368
 
369
 
  /* 
 
369
  /*
370
370
    For each key that has quick_keys.is_set(key) == true: estimate of #records
371
371
    and max #key parts that range access would use.
372
372
  */
378
378
  uint          quick_key_parts[MAX_KEY];
379
379
  uint          quick_n_ranges[MAX_KEY];
380
380
 
381
 
  /* 
 
381
  /*
382
382
    Estimate of number of records that satisfy SARGable part of the table
383
383
    condition, or table->file->records if no SARGable condition could be
384
384
    constructed.
385
385
    This value is used by join optimizer as an estimate of number of records
386
 
    that will pass the table condition (condition that depends on fields of 
 
386
    that will pass the table condition (condition that depends on fields of
387
387
    this table and constants)
388
388
  */
389
389
  ha_rows       quick_condition_rows;
422
422
  bool maybe_null;
423
423
 
424
424
  /*
425
 
    If true, the current table row is considered to have all columns set to 
 
425
    If true, the current table row is considered to have all columns set to
426
426
    NULL, including columns declared as "not null" (see maybe_null).
427
427
  */
428
428
  bool null_row;
537
537
 
538
538
typedef struct st_field_info
539
539
{
540
 
  /** 
541
 
      This is used as column name. 
 
540
  /**
 
541
      This is used as column name.
542
542
  */
543
543
  const char* field_name;
544
544
  /**
586
586
  int (*old_format) (Session *session, struct ST_SCHEMA_TABLE *schema_table);
587
587
  int (*process_table) (Session *session, TableList *tables, Table *table,
588
588
                        bool res, LEX_STRING *db_name, LEX_STRING *table_name);
589
 
  int idx_field1, idx_field2; 
 
589
  int idx_field1, idx_field2;
590
590
  bool hidden;
591
591
  uint32_t i_s_requested_object;  /* the object we need to open(Table | VIEW) */
592
592
};