~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/join_table.h

  • Committer: Monty Taylor
  • Date: 2009-12-27 00:49:03 UTC
  • mto: This revision was merged to the branch mainline in revision 1255.
  • Revision ID: mordred@inaugust.com-20091227004903-maw7ktxu6i6hye9b
Moved mem_root functions into drizzled::memory:: namespace.

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
#include "drizzled/join_cache.h"
35
35
#include "drizzled/optimizer/key_use.h"
36
36
 
37
 
#include "drizzled/records.h"
38
 
 
39
37
#include <bitset>
40
38
 
41
 
namespace drizzled
42
 
{
43
 
 
44
39
/* Values for JoinTable::packed_info */
45
40
#define TAB_INFO_HAVE_VALUE 1
46
41
#define TAB_INFO_USING_INDEX 2
120
115
    embedding_map(0)
121
116
  {}
122
117
  Table *table;
123
 
  optimizer::KeyUse *keyuse; /**< pointer to first used key */
124
 
  optimizer::SqlSelect *select;
 
118
  drizzled::optimizer::KeyUse *keyuse; /**< pointer to first used key */
 
119
  drizzled::optimizer::SqlSelect *select;
125
120
  COND *select_cond;
126
 
  optimizer::QuickSelectInterface *quick;
 
121
  drizzled::optimizer::QuickSelectInterface *quick;
127
122
  /**
128
123
    The value of select_cond before we've attempted to do Index Condition
129
124
    Pushdown. We may need to restore everything back if we first choose one
151
146
 
152
147
  Read_record_func read_first_record;
153
148
  Next_select_func next_select;
154
 
  ReadRecord    read_record;
 
149
  READ_RECORD   read_record;
155
150
  /*
156
151
    Currently the following two fields are used only for a [NOT] IN subquery
157
152
    if it is executed by an alternative full table scan when the left operand of
158
153
    the subquery predicate is evaluated to NULL.
159
154
  */
160
155
  Read_record_func save_read_first_record; /**< to save read_first_record */
161
 
  int (*save_read_record) (ReadRecord *); /**< to save read_record.read_record */
 
156
  int (*save_read_record) (READ_RECORD *); /**< to save read_record.read_record */
162
157
  double worst_seeks;
163
158
  key_map       const_keys; /**< Keys with constant part */
164
159
  key_map       checked_keys; /**< Keys checked in find_best */
200
195
  */
201
196
  ha_rows limit;
202
197
  table_reference_st    ref;
203
 
  JoinCache cache;
204
 
  Join *join;
 
198
  JOIN_CACHE cache;
 
199
  JOIN *join;
205
200
 
206
201
  /**
207
202
     ptr  - this join tab should do an InsideOut scan. Points
239
234
  {
240
235
    return (select && select->quick &&
241
236
            (select->quick->get_type() ==
242
 
             optimizer::QuickSelectInterface::QS_TYPE_GROUP_MIN_MAX));
 
237
             drizzled::optimizer::QuickSelectInterface::QS_TYPE_GROUP_MIN_MAX));
243
238
  }
244
239
 
245
240
  void readCachedRecord();
246
241
};
247
242
 
248
 
} /* namespace drizzled */
249
 
 
250
243
#endif /* DRIZZLED_JOIN_TABLE_H */