~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/optimizer/range.h

Moved the SEL_ARG class into its own header and implementation files. Cleaned up a bunch of style
issues in the code for that class. Next commit will clean up more style issues in that class.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 
28
28
#include <queue>
29
29
 
30
 
class PARAM;
31
30
class JOIN;
32
31
class TRP_ROR_INTERSECT; 
33
32
typedef class Item COND;
50
49
  Field *field;
51
50
} KEY_PART;
52
51
 
53
 
class SEL_ARG;
54
52
 
55
53
namespace drizzled
56
54
{
58
56
namespace optimizer
59
57
{
60
58
 
 
59
class PARAM;
 
60
class SEL_ARG;
 
61
 
61
62
/**
62
63
  Quick select interface.
63
64
  This class is a parent for all QUICK_*_SELECT classes.
566
567
    otherwise created quick select
567
568
*/
568
569
QuickRangeSelect *get_quick_select(PARAM *param,
569
 
                                     uint32_t index,
570
 
                                     SEL_ARG *key_tree, 
571
 
                                     uint32_t mrr_flags,
572
 
                                     uint32_t mrr_buf_size, 
573
 
                                     MEM_ROOT *alloc);
 
570
                                   uint32_t index,
 
571
                                   SEL_ARG *key_tree, 
 
572
                                   uint32_t mrr_flags,
 
573
                                   uint32_t mrr_buf_size, 
 
574
                                   MEM_ROOT *alloc);
574
575
 
575
576
uint32_t get_index_for_order(Table *table, order_st *order, ha_rows limit);
576
577
 
582
583
                        int *error);
583
584
 
584
585
bool get_quick_keys(PARAM *param, 
585
 
                    QuickRangeSelect *quick,KEY_PART *key,
 
586
                    QuickRangeSelect *quick,
 
587
                    KEY_PART *key,
586
588
                    SEL_ARG *key_tree, 
587
589
                    unsigned char *min_key,
588
590
                    uint32_t min_key_flag,