~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_select.h

  • Committer: Padraig O'Sullivan
  • Date: 2009-08-10 22:30:11 UTC
  • mto: (1115.3.10 captain)
  • mto: This revision was merged to the branch mainline in revision 1120.
  • Revision ID: osullivan.padraig@gmail.com-20090810223011-ua3dwbt1h8z5atl7
Made the records_read member of the Position class private.

Show diffs side-by-side

added added

removed removed

Lines of Context:
98
98
      ref_depend_map(0)
99
99
  {}
100
100
 
 
101
  Position(double in_records_read,
 
102
           double in_read_time,
 
103
           JoinTable *in_table,
 
104
           KeyUse *in_key,
 
105
           table_map in_ref_depend_map)
 
106
    :
 
107
      records_read(in_records_read),
 
108
      read_time(in_read_time),
 
109
      table(in_table),
 
110
      key(in_key),
 
111
      ref_depend_map(in_ref_depend_map)
 
112
  {}
 
113
 
101
114
  /**
102
115
   * Determine whether the table this particular position is representing in
103
116
   * the query plan is a const table or not. A constant table is defined as
117
130
    return (records_read < 2.0);
118
131
  }
119
132
 
 
133
  double getFanout() const
 
134
  {
 
135
    return records_read;
 
136
  }
 
137
 
 
138
  void setFanout(double in_records_read)
 
139
  {
 
140
    records_read= in_records_read;
 
141
  }
 
142
 
 
143
private:
 
144
 
120
145
  /**
121
146
    The "fanout": number of output rows that will be produced (after
122
147
    pushed down selection condition is applied) per each row combination of
124
149
  */
125
150
  double records_read;
126
151
 
 
152
public:
 
153
 
127
154
  /**
128
155
    Cost accessing the table in course of the entire complete join execution,
129
156
    i.e. cost of one access method use (e.g. 'range' or 'ref' scan ) times