GPUdb C++ API  Version 7.2.3.0
alter_table_monitor.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 __ALTER_TABLE_MONITOR_H__
7 #define __ALTER_TABLE_MONITOR_H__
8 
9 namespace gpudb
10 {
21  {
27  topicId(std::string()),
28  monitorUpdatesMap(std::map<std::string, std::string>()),
29  options(std::map<std::string, std::string>())
30  {
31  }
32 
86  AlterTableMonitorRequest(const std::string& topicId_, const std::map<std::string, std::string>& monitorUpdatesMap_, const std::map<std::string, std::string>& options_):
87  topicId( topicId_ ),
88  monitorUpdatesMap( monitorUpdatesMap_ ),
89  options( options_ )
90  {
91  }
92 
98  std::string topicId;
99 
128  std::map<std::string, std::string> monitorUpdatesMap;
129 
133  std::map<std::string, std::string> options;
134  };
135 } // end namespace gpudb
136 
137 namespace avro
138 {
139  template<> struct codec_traits<gpudb::AlterTableMonitorRequest>
140  {
141  static void encode(Encoder& e, const gpudb::AlterTableMonitorRequest& v)
142  {
143  ::avro::encode(e, v.topicId);
144  ::avro::encode(e, v.monitorUpdatesMap);
145  ::avro::encode(e, v.options);
146  }
147 
148  static void decode(Decoder& d, gpudb::AlterTableMonitorRequest& v)
149  {
150  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
151  {
152  const std::vector<size_t> fo = rd->fieldOrder();
153 
154  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
155  {
156  switch (*it)
157  {
158  case 0:
159  ::avro::decode(d, v.topicId);
160  break;
161 
162  case 1:
163  ::avro::decode(d, v.monitorUpdatesMap);
164  break;
165 
166  case 2:
167  ::avro::decode(d, v.options);
168  break;
169 
170  default:
171  break;
172  }
173  }
174  }
175  else
176  {
177  ::avro::decode(d, v.topicId);
178  ::avro::decode(d, v.monitorUpdatesMap);
179  ::avro::decode(d, v.options);
180  }
181  }
182  };
183 } // end namespace avro
184 
185 namespace gpudb
186 {
193  {
199  topicId(std::string()),
200  info(std::map<std::string, std::string>())
201  {
202  }
203 
207  std::string topicId;
208 
212  std::map<std::string, std::string> info;
213  };
214 } // end namespace gpudb
215 
216 namespace avro
217 {
218  template<> struct codec_traits<gpudb::AlterTableMonitorResponse>
219  {
220  static void encode(Encoder& e, const gpudb::AlterTableMonitorResponse& v)
221  {
222  ::avro::encode(e, v.topicId);
223  ::avro::encode(e, v.info);
224  }
225 
226  static void decode(Decoder& d, gpudb::AlterTableMonitorResponse& v)
227  {
228  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
229  {
230  const std::vector<size_t> fo = rd->fieldOrder();
231 
232  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
233  {
234  switch (*it)
235  {
236  case 0:
237  ::avro::decode(d, v.topicId);
238  break;
239 
240  case 1:
241  ::avro::decode(d, v.info);
242  break;
243 
244  default:
245  break;
246  }
247  }
248  }
249  else
250  {
251  ::avro::decode(d, v.topicId);
252  ::avro::decode(d, v.info);
253  }
254  }
255  };
256 } // end namespace avro
257 
258 #endif // __ALTER_TABLE_MONITOR_H__
std::map< std::string, std::string > options
Optional parameters.
AlterTableMonitorRequest(const std::string &topicId_, const std::map< std::string, std::string > &monitorUpdatesMap_, const std::map< std::string, std::string > &options_)
Constructs an AlterTableMonitorRequest object with the specified parameters.
AlterTableMonitorResponse()
Constructs an AlterTableMonitorResponse object with default parameters.
A set of results returned by GPUdb::alterTableMonitor.
std::map< std::string, std::string > monitorUpdatesMap
Map containing the properties of the table monitor to be updated.
std::map< std::string, std::string > info
Additional information.
A set of parameters for GPUdb::alterTableMonitor.
std::string topicId
Value of topicId.
AlterTableMonitorRequest()
Constructs an AlterTableMonitorRequest object with default parameters.
std::string topicId
The topic ID returned by GPUdb::createTableMonitor.