GPUdb C++ API  Version 7.2.3.0
show_table_monitors.h
Go to the documentation of this file.
1 /*
2  * This file was autogenerated by the Kinetica 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 {
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 
54  std::vector<std::string> monitorIds;
55 
59  std::map<std::string, std::string> options;
60  };
61 } // end namespace gpudb
62 
63 namespace avro
64 {
65  template<> struct codec_traits<gpudb::ShowTableMonitorsRequest>
66  {
67  static void encode(Encoder& e, const gpudb::ShowTableMonitorsRequest& v)
68  {
69  ::avro::encode(e, v.monitorIds);
70  ::avro::encode(e, v.options);
71  }
72 
73  static void decode(Decoder& d, gpudb::ShowTableMonitorsRequest& v)
74  {
75  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
76  {
77  const std::vector<size_t> fo = rd->fieldOrder();
78 
79  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
80  {
81  switch (*it)
82  {
83  case 0:
84  ::avro::decode(d, v.monitorIds);
85  break;
86 
87  case 1:
88  ::avro::decode(d, v.options);
89  break;
90 
91  default:
92  break;
93  }
94  }
95  }
96  else
97  {
98  ::avro::decode(d, v.monitorIds);
99  ::avro::decode(d, v.options);
100  }
101  }
102  };
103 } // end namespace avro
104 
105 namespace gpudb
106 {
113  {
119  monitorIds(std::vector<std::string>()),
120  tableNames(std::vector<std::string>()),
121  events(std::vector<std::string>()),
122  increasingColumns(std::vector<std::string>()),
123  filterExpressions(std::vector<std::string>()),
124  joinTableNames(std::vector<std::string>()),
125  joinColumnNames(std::vector<std::string>()),
126  joinExpressions(std::vector<std::string>()),
127  refreshMethod(std::vector<std::string>()),
128  refreshPeriod(std::vector<std::string>()),
129  refreshStartTime(std::vector<std::string>()),
130  datasinkNames(std::vector<std::string>()),
131  additionalInfo(std::vector<std::map<std::string, std::string> >()),
132  info(std::map<std::string, std::string>())
133  {
134  }
135 
139  std::vector<std::string> monitorIds;
140 
145  std::vector<std::string> tableNames;
146 
150  std::vector<std::string> events;
151 
156  std::vector<std::string> increasingColumns;
157 
162  std::vector<std::string> filterExpressions;
163 
167  std::vector<std::string> joinTableNames;
168 
172  std::vector<std::string> joinColumnNames;
173 
177  std::vector<std::string> joinExpressions;
178 
183  std::vector<std::string> refreshMethod;
184 
189  std::vector<std::string> refreshPeriod;
190 
195  std::vector<std::string> refreshStartTime;
196 
201  std::vector<std::string> datasinkNames;
202 
232  std::vector<std::map<std::string, std::string> > additionalInfo;
233 
237  std::map<std::string, std::string> info;
238  };
239 } // end namespace gpudb
240 
241 namespace avro
242 {
243  template<> struct codec_traits<gpudb::ShowTableMonitorsResponse>
244  {
245  static void encode(Encoder& e, const gpudb::ShowTableMonitorsResponse& v)
246  {
247  ::avro::encode(e, v.monitorIds);
248  ::avro::encode(e, v.tableNames);
249  ::avro::encode(e, v.events);
250  ::avro::encode(e, v.increasingColumns);
251  ::avro::encode(e, v.filterExpressions);
252  ::avro::encode(e, v.joinTableNames);
253  ::avro::encode(e, v.joinColumnNames);
254  ::avro::encode(e, v.joinExpressions);
255  ::avro::encode(e, v.refreshMethod);
256  ::avro::encode(e, v.refreshPeriod);
257  ::avro::encode(e, v.refreshStartTime);
258  ::avro::encode(e, v.datasinkNames);
259  ::avro::encode(e, v.additionalInfo);
260  ::avro::encode(e, v.info);
261  }
262 
263  static void decode(Decoder& d, gpudb::ShowTableMonitorsResponse& v)
264  {
265  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
266  {
267  const std::vector<size_t> fo = rd->fieldOrder();
268 
269  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
270  {
271  switch (*it)
272  {
273  case 0:
274  ::avro::decode(d, v.monitorIds);
275  break;
276 
277  case 1:
278  ::avro::decode(d, v.tableNames);
279  break;
280 
281  case 2:
282  ::avro::decode(d, v.events);
283  break;
284 
285  case 3:
286  ::avro::decode(d, v.increasingColumns);
287  break;
288 
289  case 4:
290  ::avro::decode(d, v.filterExpressions);
291  break;
292 
293  case 5:
294  ::avro::decode(d, v.joinTableNames);
295  break;
296 
297  case 6:
298  ::avro::decode(d, v.joinColumnNames);
299  break;
300 
301  case 7:
302  ::avro::decode(d, v.joinExpressions);
303  break;
304 
305  case 8:
306  ::avro::decode(d, v.refreshMethod);
307  break;
308 
309  case 9:
310  ::avro::decode(d, v.refreshPeriod);
311  break;
312 
313  case 10:
314  ::avro::decode(d, v.refreshStartTime);
315  break;
316 
317  case 11:
318  ::avro::decode(d, v.datasinkNames);
319  break;
320 
321  case 12:
322  ::avro::decode(d, v.additionalInfo);
323  break;
324 
325  case 13:
326  ::avro::decode(d, v.info);
327  break;
328 
329  default:
330  break;
331  }
332  }
333  }
334  else
335  {
336  ::avro::decode(d, v.monitorIds);
337  ::avro::decode(d, v.tableNames);
338  ::avro::decode(d, v.events);
339  ::avro::decode(d, v.increasingColumns);
340  ::avro::decode(d, v.filterExpressions);
341  ::avro::decode(d, v.joinTableNames);
342  ::avro::decode(d, v.joinColumnNames);
343  ::avro::decode(d, v.joinExpressions);
344  ::avro::decode(d, v.refreshMethod);
345  ::avro::decode(d, v.refreshPeriod);
346  ::avro::decode(d, v.refreshStartTime);
347  ::avro::decode(d, v.datasinkNames);
348  ::avro::decode(d, v.additionalInfo);
349  ::avro::decode(d, v.info);
350  }
351  }
352  };
353 } // end namespace avro
354 
355 #endif // __SHOW_TABLE_MONITORS_H__
std::vector< std::string > monitorIds
List of monitors to be shown.
std::map< std::string, std::string > options
Optional parameters.
std::vector< std::string > refreshPeriod
List of refresh periods used on the respective tables in tableNames.
std::vector< std::string > events
List of notification events for the respective monitorIds.
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
List of refresh methods used on the respective tables in tableNames.
ShowTableMonitorsRequest()
Constructs a ShowTableMonitorsRequest object with default parameters.
A set of results returned by GPUdb::showTableMonitors.
std::vector< std::string > datasinkNames
List of datasink names for the respective monitorIds if one is defined.
std::vector< std::string > monitorIds
List of monitor IDs.
std::vector< std::string > joinColumnNames
List of join_column_names.
std::vector< std::string > refreshStartTime
List of refresh start times used on the respective tables in tableNames.
ShowTableMonitorsResponse()
Constructs a ShowTableMonitorsResponse object with default parameters.
std::vector< std::string > increasingColumns
List of columns used on the respective tables in tableNames that will increase for new records.
std::vector< std::string > joinTableNames
List of join_table_names.
std::vector< std::string > tableNames
List of source tables being monitored for the respective monitorIds.
A set of parameters for GPUdb::showTableMonitors.
std::map< std::string, std::string > info
Additional information.
std::vector< std::string > filterExpressions
List of filter expressions used on the respective tables in tableNames to limit records for notificat...
std::vector< std::map< std::string, std::string > > additionalInfo
Additional information about the respective monitors in monitorIds.
std::vector< std::string > joinExpressions
List of join expressions.