~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/optimizer/range.h

edit

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#ifndef DRIZZLED_OPTIMIZER_RANGE_H
23
23
#define DRIZZLED_OPTIMIZER_RANGE_H
24
24
 
25
 
#include <drizzled/field.h>
26
 
#include <drizzled/item/sum.h>
27
 
#include <drizzled/table_reference.h>
 
25
#include "drizzled/field.h"
 
26
#include "drizzled/item/sum.h"
28
27
 
29
28
#include <queue>
30
29
 
31
 
#include <boost/dynamic_bitset.hpp>
32
 
 
33
30
namespace drizzled
34
31
{
35
32
 
241
238
   * 
242
239
   * @note This is used by during explain plan.
243
240
   */
244
 
  virtual void add_keys_and_lengths(std::string *key_names,
245
 
                                    std::string *used_lengths)=0;
 
241
  virtual void add_keys_and_lengths(String *key_names, String *used_lengths)=0;
246
242
 
247
243
  /**
248
244
   * Append text representation of quick select structure (what and how is
253
249
   * This function is implemented only by quick selects that merge other quick
254
250
   * selects output and/or can produce output suitable for merging.
255
251
   */
256
 
  virtual void add_info_string(std::string *)
 
252
  virtual void add_info_string(String *) 
257
253
  {}
258
 
 
 
254
  
259
255
  /**
260
256
   * Returns true if any index used by this quick select
261
257
   * uses field which is marked in passed bitmap.
316
312
};
317
313
 
318
314
QuickRangeSelect *get_quick_select_for_ref(Session *session, 
319
 
                                           Table *table,
320
 
                                           table_reference_st *ref,
321
 
                                           ha_rows records);
 
315
                                             Table *table,
 
316
                                             struct table_reference_st *ref,
 
317
                                             ha_rows records);
322
318
 
323
319
/*
324
320
  Create a QuickRangeSelect from given key and SEL_ARG tree for that key.