~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/optimizer/quick_range_select.h

  • Committer: Monty Taylor
  • Date: 2010-05-15 18:23:34 UTC
  • mto: (1530.6.1)
  • mto: This revision was merged to the branch mainline in revision 1556.
  • Revision ID: mordred@inaugust.com-20100515182334-bgbmwij0mioklajx
Renamed classes that were in drizzled::plugin but which were not meant
for consumption by plugin authors to drizzled::module - since they
really have to do with plugin module loading. This way when we
look in drizzled/plugin, we see nothing but plugin interfaces. Win.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
#include "drizzled/optimizer/range.h"
24
24
 
25
 
#include <boost/dynamic_bitset.hpp>
26
25
#include <vector>
27
26
 
28
27
namespace drizzled
47
46
 
48
47
  /** Members to deal with case when this quick select is a ROR-merged scan */
49
48
  bool in_ror_merged_scan;
50
 
  boost::dynamic_bitset<> *column_bitmap;
51
 
  boost::dynamic_bitset<> *save_read_set;
52
 
  boost::dynamic_bitset<> *save_write_set;
 
49
  MyBitmap column_bitmap;
 
50
  MyBitmap *save_read_set;
 
51
  MyBitmap *save_write_set;
53
52
  bool free_file; /**< True when this->file is "owned" by this quick select */
54
53
 
55
54
  /* Range pointers to be used when not using MRR interface */
59
58
  /** Members needed to use the MRR interface */
60
59
  QuickRangeSequenceContext qr_traversal_ctx;
61
60
  uint32_t mrr_buf_size; /**< copy from session->variables.read_rnd_buff_size */
 
61
  HANDLER_BUFFER *mrr_buf_desc; /**< the Cursor buffer */
62
62
 
63
63
  /** Info about index we're scanning */
64
64
  KEY_PART *key_parts;
65
 
  KeyPartInfo *key_part_info;
 
65
  KEY_PART_INFO *key_part_info;
66
66
 
67
67
  bool dont_free; /**< Used by QuickSelectDescending */
68
68
 
107
107
                     Table *table,
108
108
                     uint32_t index_arg,
109
109
                     bool no_alloc,
110
 
                     memory::Root *parent_alloc);
 
110
                     memory::Root *parent_alloc,
 
111
                     bool *create_err);
111
112
 
112
113
  ~QuickRangeSelect();
113
114
 
122
123
   * QuickRangeSelect::get_next()
123
124
   *
124
125
   * NOTES
125
 
   * Record is read into table->getInsertRecord()
 
126
   * Record is read into table->record[0]
126
127
   *
127
128
   * RETURN
128
129
   * @retval 0                  Found row
222
223
      Use default MRR implementation for reverse scans. No table engine
223
224
      currently can do an MRR scan with output in reverse index order.
224
225
    */
 
226
    mrr_buf_desc= NULL;
225
227
    mrr_flags|= HA_MRR_USE_DEFAULT_IMPL;
226
228
    mrr_buf_size= 0;
227
229
  }
262
264
                                          uint32_t n_ranges, 
263
265
                                          uint32_t flags);
264
266
 
265
 
  friend void select_describe(Join *join, 
 
267
  friend void select_describe(JOIN *join, 
266
268
                              bool need_tmp_table, 
267
269
                              bool need_order,
268
270
                              bool distinct,