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