~ubuntu-branches/ubuntu/trusty/drizzle/trusty

« back to all changes in this revision

Viewing changes to drizzled/optimizer/sel_imerge.h

  • Committer: Package Import Robot
  • Author(s): Clint Byrum
  • Date: 2012-06-19 10:46:49 UTC
  • mfrom: (1.1.6)
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20120619104649-e2l0ggd4oz3um0f4
Tags: upstream-7.1.36-stable
ImportĀ upstreamĀ versionĀ 7.1.36-stable

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
#include <drizzled/memory/sql_alloc.h>
23
23
 
24
 
namespace drizzled
25
 
{
26
 
 
27
 
namespace optimizer
28
 
{
29
 
 
30
 
class RangeParameter;
31
 
class SEL_TREE;
32
 
class SEL_ARG;
 
24
namespace drizzled {
 
25
namespace optimizer {
33
26
 
34
27
/*
35
28
  SEL_IMERGE is a list of possible ways to do index merge, i.e. it is
67
60
     0 - OK
68
61
     -1 - Out of memory.
69
62
   */
70
 
  int or_sel_tree(RangeParameter *param, SEL_TREE *tree);
 
63
  void or_sel_tree(RangeParameter *param, SEL_TREE *tree);
71
64
 
72
65
  /*
73
66
     Perform OR operation on this SEL_IMERGE and supplied optimizer::SEL_TREE new_tree,
98
91
     and (*this) should be discarded.
99
92
     -1  An error occurred.
100
93
   */
101
 
  int or_sel_tree_with_checks(optimizer::RangeParameter *param, optimizer::SEL_TREE *new_tree);
 
94
  int or_sel_tree_with_checks(RangeParameter&, SEL_TREE&);
102
95
 
103
96
  /*
104
97
     Perform OR operation on this index_merge and supplied index_merge list.
109
102
     should be discarded.
110
103
     -1 - An error occurred
111
104
   */
112
 
  int or_sel_imerge_with_checks(optimizer::RangeParameter *param, SEL_IMERGE* imerge);
 
105
  int or_sel_imerge_with_checks(RangeParameter&, SEL_IMERGE&);
113
106
 
114
107
};
115
108