GPUdb C++ API  Version 7.1.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
show_table_monitors.h
Go to the documentation of this file.
1 /*
2  * This file was autogenerated by the GPUdb schema processor.
3  *
4  * DO NOT EDIT DIRECTLY.
5  */
6 #ifndef __SHOW_TABLE_MONITORS_H__
7 #define __SHOW_TABLE_MONITORS_H__
8 
9 namespace gpudb
10 {
11 
22  {
23 
29  monitorIds(std::vector<std::string>()),
30  options(std::map<std::string, std::string>())
31  {
32  }
33 
44  ShowTableMonitorsRequest(const std::vector<std::string>& monitorIds_, const std::map<std::string, std::string>& options_):
45  monitorIds( monitorIds_ ),
46  options( options_ )
47  {
48  }
49 
50  std::vector<std::string> monitorIds;
51  std::map<std::string, std::string> options;
52  };
53 }
54 
55 namespace avro
56 {
57  template<> struct codec_traits<gpudb::ShowTableMonitorsRequest>
58  {
59  static void encode(Encoder& e, const gpudb::ShowTableMonitorsRequest& v)
60  {
61  ::avro::encode(e, v.monitorIds);
62  ::avro::encode(e, v.options);
63  }
64 
65  static void decode(Decoder& d, gpudb::ShowTableMonitorsRequest& v)
66  {
67  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
68  {
69  const std::vector<size_t> fo = rd->fieldOrder();
70 
71  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
72  {
73  switch (*it)
74  {
75  case 0:
76  ::avro::decode(d, v.monitorIds);
77  break;
78 
79  case 1:
80  ::avro::decode(d, v.options);
81  break;
82 
83  default:
84  break;
85  }
86  }
87  }
88  else
89  {
90  ::avro::decode(d, v.monitorIds);
91  ::avro::decode(d, v.options);
92  }
93  }
94  };
95 }
96 
97 namespace gpudb
98 {
99 
110  {
111 
117  monitorIds(std::vector<std::string>()),
118  tableNames(std::vector<std::string>()),
119  events(std::vector<std::string>()),
120  increasingColumns(std::vector<std::string>()),
121  filterExpressions(std::vector<std::string>()),
122  refreshMethod(std::vector<std::string>()),
123  refreshPeriod(std::vector<std::string>()),
124  refreshStartTime(std::vector<std::string>()),
125  datasinkNames(std::vector<std::string>()),
126  additionalInfo(std::vector<std::map<std::string, std::string> >()),
127  info(std::map<std::string, std::string>())
128  {
129  }
130 
131  std::vector<std::string> monitorIds;
132  std::vector<std::string> tableNames;
133  std::vector<std::string> events;
134  std::vector<std::string> increasingColumns;
135  std::vector<std::string> filterExpressions;
136  std::vector<std::string> refreshMethod;
137  std::vector<std::string> refreshPeriod;
138  std::vector<std::string> refreshStartTime;
139  std::vector<std::string> datasinkNames;
140  std::vector<std::map<std::string, std::string> > additionalInfo;
141  std::map<std::string, std::string> info;
142  };
143 }
144 
145 namespace avro
146 {
147  template<> struct codec_traits<gpudb::ShowTableMonitorsResponse>
148  {
149  static void encode(Encoder& e, const gpudb::ShowTableMonitorsResponse& v)
150  {
151  ::avro::encode(e, v.monitorIds);
152  ::avro::encode(e, v.tableNames);
153  ::avro::encode(e, v.events);
154  ::avro::encode(e, v.increasingColumns);
155  ::avro::encode(e, v.filterExpressions);
156  ::avro::encode(e, v.refreshMethod);
157  ::avro::encode(e, v.refreshPeriod);
158  ::avro::encode(e, v.refreshStartTime);
159  ::avro::encode(e, v.datasinkNames);
160  ::avro::encode(e, v.additionalInfo);
161  ::avro::encode(e, v.info);
162  }
163 
164  static void decode(Decoder& d, gpudb::ShowTableMonitorsResponse& v)
165  {
166  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
167  {
168  const std::vector<size_t> fo = rd->fieldOrder();
169 
170  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
171  {
172  switch (*it)
173  {
174  case 0:
175  ::avro::decode(d, v.monitorIds);
176  break;
177 
178  case 1:
179  ::avro::decode(d, v.tableNames);
180  break;
181 
182  case 2:
183  ::avro::decode(d, v.events);
184  break;
185 
186  case 3:
187  ::avro::decode(d, v.increasingColumns);
188  break;
189 
190  case 4:
191  ::avro::decode(d, v.filterExpressions);
192  break;
193 
194  case 5:
195  ::avro::decode(d, v.refreshMethod);
196  break;
197 
198  case 6:
199  ::avro::decode(d, v.refreshPeriod);
200  break;
201 
202  case 7:
203  ::avro::decode(d, v.refreshStartTime);
204  break;
205 
206  case 8:
207  ::avro::decode(d, v.datasinkNames);
208  break;
209 
210  case 9:
211  ::avro::decode(d, v.additionalInfo);
212  break;
213 
214  case 10:
215  ::avro::decode(d, v.info);
216  break;
217 
218  default:
219  break;
220  }
221  }
222  }
223  else
224  {
225  ::avro::decode(d, v.monitorIds);
226  ::avro::decode(d, v.tableNames);
227  ::avro::decode(d, v.events);
228  ::avro::decode(d, v.increasingColumns);
229  ::avro::decode(d, v.filterExpressions);
230  ::avro::decode(d, v.refreshMethod);
231  ::avro::decode(d, v.refreshPeriod);
232  ::avro::decode(d, v.refreshStartTime);
233  ::avro::decode(d, v.datasinkNames);
234  ::avro::decode(d, v.additionalInfo);
235  ::avro::decode(d, v.info);
236  }
237  }
238  };
239 }
240 
241 #endif
std::vector< std::string > monitorIds
std::map< std::string, std::string > options
std::vector< std::string > refreshPeriod
std::vector< std::string > events
ShowTableMonitorsRequest(const std::vector< std::string > &monitorIds_, const std::map< std::string, std::string > &options_)
Constructs a ShowTableMonitorsRequest object with the specified parameters.
std::vector< std::string > refreshMethod
ShowTableMonitorsRequest()
Constructs a ShowTableMonitorsRequest object with default parameter values.
A set of output parameters for const.
std::vector< std::string > datasinkNames
std::vector< std::string > monitorIds
std::vector< std::string > refreshStartTime
ShowTableMonitorsResponse()
Constructs a ShowTableMonitorsResponse object with default parameter values.
std::vector< std::string > increasingColumns
std::vector< std::string > tableNames
A set of input parameters for const.
std::map< std::string, std::string > info
std::vector< std::string > filterExpressions
std::vector< std::map< std::string, std::string > > additionalInfo