~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/join.h

Made the positions member of the JOIN class private (finally got that
bitch...) Now to clean up the interface to the positions and best_positions
members. I would like to use std::vector if possible to represent them but
need to take baby steps...

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
  JOIN& operator=(const JOIN &rhs);             /**< not implemented */
34
34
 
35
35
  /**
 
36
   * Contains a partial query execution plan which is extended during
 
37
   * cost-based optimization.
 
38
   */
 
39
  Position positions[MAX_TABLES+1];
 
40
 
 
41
  /**
36
42
   * Contains the optimal query execution plan after cost-based optimization
37
43
   * has taken place. 
38
44
   */
144
150
  nested_join_map cur_embedding_map;
145
151
 
146
152
  /**
147
 
   * Contains a partial query execution plan which is extended during
148
 
   * cost-based optimization.
149
 
   */
150
 
  Position positions[MAX_TABLES+1];
151
 
 
152
 
  /**
153
153
   * The cost for the final query execution plan chosen after optimization
154
154
   * has completed. The QEP is stored in the best_positions variable.
155
155
   */
483
483
    positions[index].ref_depend_map= in_pos.ref_depend_map;
484
484
  }
485
485
 
 
486
  Position *getFirstPos()
 
487
  {
 
488
    return positions;
 
489
  }
 
490
 
 
491
  Position *getSpecificPos(int32_t index)
 
492
  {
 
493
    return positions + index;
 
494
  }
 
495
 
486
496
};
487
497
 
488
498
enum_nested_loop_state evaluate_join_record(JOIN *join, JoinTable *join_tab, int error);