GPUdb C++ API  Version 7.2.2.4
show_resource_objects.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_RESOURCE_OBJECTS_H__
7 #define __SHOW_RESOURCE_OBJECTS_H__
8 
9 namespace gpudb
10 {
23  {
29  options(std::map<std::string, std::string>())
30  {
31  }
32 
105  ShowResourceObjectsRequest(const std::map<std::string, std::string>& options_):
106  options( options_ )
107  {
108  }
109 
159  std::map<std::string, std::string> options;
160  };
161 } // end namespace gpudb
162 
163 namespace avro
164 {
165  template<> struct codec_traits<gpudb::ShowResourceObjectsRequest>
166  {
167  static void encode(Encoder& e, const gpudb::ShowResourceObjectsRequest& v)
168  {
169  ::avro::encode(e, v.options);
170  }
171 
172  static void decode(Decoder& d, gpudb::ShowResourceObjectsRequest& v)
173  {
174  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
175  {
176  const std::vector<size_t> fo = rd->fieldOrder();
177 
178  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
179  {
180  switch (*it)
181  {
182  case 0:
183  ::avro::decode(d, v.options);
184  break;
185 
186  default:
187  break;
188  }
189  }
190  }
191  else
192  {
193  ::avro::decode(d, v.options);
194  }
195  }
196  };
197 } // end namespace avro
198 
199 namespace gpudb
200 {
207  {
213  rankObjects(std::map<std::string, std::string>()),
214  info(std::map<std::string, std::string>())
215  {
216  }
217 
223  std::map<std::string, std::string> rankObjects;
224 
228  std::map<std::string, std::string> info;
229  };
230 } // end namespace gpudb
231 
232 namespace avro
233 {
234  template<> struct codec_traits<gpudb::ShowResourceObjectsResponse>
235  {
236  static void encode(Encoder& e, const gpudb::ShowResourceObjectsResponse& v)
237  {
238  ::avro::encode(e, v.rankObjects);
239  ::avro::encode(e, v.info);
240  }
241 
242  static void decode(Decoder& d, gpudb::ShowResourceObjectsResponse& v)
243  {
244  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
245  {
246  const std::vector<size_t> fo = rd->fieldOrder();
247 
248  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
249  {
250  switch (*it)
251  {
252  case 0:
253  ::avro::decode(d, v.rankObjects);
254  break;
255 
256  case 1:
257  ::avro::decode(d, v.info);
258  break;
259 
260  default:
261  break;
262  }
263  }
264  }
265  else
266  {
267  ::avro::decode(d, v.rankObjects);
268  ::avro::decode(d, v.info);
269  }
270  }
271  };
272 } // end namespace avro
273 
274 #endif // __SHOW_RESOURCE_OBJECTS_H__
A set of results returned by GPUdb::showResourceObjects.
ShowResourceObjectsRequest()
Constructs a ShowResourceObjectsRequest object with default parameters.
A set of parameters for GPUdb::showResourceObjects.
std::map< std::string, std::string > info
Additional information.
ShowResourceObjectsResponse()
Constructs a ShowResourceObjectsResponse object with default parameters.
std::map< std::string, std::string > options
Optional parameters.
ShowResourceObjectsRequest(const std::map< std::string, std::string > &options_)
Constructs a ShowResourceObjectsRequest object with the specified parameters.
std::map< std::string, std::string > rankObjects
Tier usage across ranks.