~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/join.h

  • Committer: Mark Atwood
  • Date: 2011-08-11 03:05:03 UTC
  • mfrom: (2385.1.12 refactor4)
  • Revision ID: me@mark.atwood.name-20110811030503-rp9xjihc5x3y0x4q
mergeĀ lp:~olafvdspek/drizzle/refactor4

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 * Defines the Join class
25
25
 */
26
26
 
27
 
#ifndef DRIZZLED_JOIN_H
28
 
#define DRIZZLED_JOIN_H
 
27
#pragma once
29
28
 
 
29
#include <drizzled/dynamic_array.h>
30
30
#include <drizzled/optimizer/position.h>
31
 
#include <drizzled/session.h>
32
31
#include <drizzled/sql_select.h>
 
32
#include <drizzled/tmp_table_param.h>
33
33
#include <bitset>
34
34
 
35
 
namespace drizzled
36
 
{
37
 
 
38
 
class Session;
39
 
 
40
 
class Join :public memory::SqlAlloc
41
 
{
42
 
  Join(const Join &rhs);                        /**< not implemented */
43
 
  Join& operator=(const Join &rhs);             /**< not implemented */
44
 
 
 
35
namespace drizzled {
 
36
 
 
37
class Join : public memory::SqlAlloc, boost::noncopyable
 
38
{
45
39
  /**
46
40
   * Contains a partial query execution plan which is extended during
47
41
   * cost-based optimization.
274
268
  }
275
269
  inline void init_items_ref_array()
276
270
  {
277
 
    items0= ref_pointer_array + all_fields.elements;
 
271
    items0= ref_pointer_array + all_fields.size();
278
272
    memcpy(items0, ref_pointer_array, ref_pointer_array_size);
279
273
    current_ref_pointer_array= items0;
280
274
  }
296
290
  /** Cleanup this Join, possibly for reuse */
297
291
  void cleanup(bool full);
298
292
  void clear();
299
 
  bool save_join_tab();
300
 
  bool init_save_join_tab();
 
293
  void save_join_tab();
 
294
  void init_save_join_tab();
301
295
  bool send_row_on_empty_set()
302
296
  {
303
297
    return (do_send_rows && tmp_table_param.sum_func_count != 0 &&
378
372
 
379
373
} /* namespace drizzled */
380
374
 
381
 
#endif /* DRIZZLED_JOIN_H */