~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_select.h

  • Committer: Lee Bieber
  • Date: 2011-01-19 01:50:26 UTC
  • mfrom: (2095.1.5 build)
  • Revision ID: kalebral@gmail.com-20110119015026-j1ukv30cz662e51e
Merge Shrews - Refactor the TransactionServices public interface
Merge Monty - fix bug 583375: support configure option to specify static/dynamic build for a plugin
Merge Shrews - fix bug 702505: transaction_reader utility does not check for errors from statement transformation
Merge Vijay - Convert structs to classes
Merge Joe - 702529: PRINT_TRANSACTION_MESSAGE udf does not output UUID

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
enum_nested_loop_state end_send_group(Join *join, JoinTable *join_tab, bool end_of_records);
57
57
enum_nested_loop_state end_write_group(Join *join, JoinTable *join_tab, bool end_of_records);
58
58
 
59
 
typedef struct st_rollup
 
59
class Rollup
60
60
{
 
61
public:
61
62
  enum State { STATE_NONE, STATE_INITED, STATE_READY };
 
63
 
 
64
  Rollup()
 
65
  :
 
66
  state(),
 
67
  null_items(NULL),
 
68
  ref_pointer_arrays(NULL),
 
69
  fields()
 
70
  {}
 
71
  
 
72
  Rollup(State in_state,
 
73
         Item_null_result **in_null_items,
 
74
         Item ***in_ref_pointer_arrays,
 
75
         List<Item> *in_fields)
 
76
  :
 
77
  state(in_state),
 
78
  null_items(in_null_items),
 
79
  ref_pointer_arrays(in_ref_pointer_arrays),
 
80
  fields(in_fields)
 
81
  {}
 
82
  
 
83
  State getState() const
 
84
  {
 
85
    return state;
 
86
  }
 
87
 
 
88
  void setState(State in_state)
 
89
  {
 
90
    state= in_state;
 
91
  }
 
92
 
 
93
  Item_null_result **getNullItems() const
 
94
  {
 
95
    return null_items;
 
96
  }
 
97
 
 
98
  void setNullItems(Item_null_result **in_null_items)
 
99
  {
 
100
    null_items= in_null_items;
 
101
  }
 
102
 
 
103
  Item ***getRefPointerArrays() const
 
104
  {
 
105
    return ref_pointer_arrays;
 
106
  }
 
107
 
 
108
  void setRefPointerArrays(Item ***in_ref_pointer_arrays)
 
109
  {
 
110
    ref_pointer_arrays= in_ref_pointer_arrays;
 
111
  }
 
112
 
 
113
  List<Item> *getFields() const
 
114
  {
 
115
    return fields;
 
116
  }
 
117
 
 
118
  void setFields(List<Item> *in_fields)
 
119
  {
 
120
    fields= in_fields;
 
121
  }
 
122
  
 
123
private:
62
124
  State state;
63
125
  Item_null_result **null_items;
64
126
  Item ***ref_pointer_arrays;
65
127
  List<Item> *fields;
66
 
} ROLLUP;
 
128
};
67
129
 
68
130
} /* namespace drizzled */
69
131