GPUdb C++ API  Version 7.2.2.4
show_system_properties.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_SYSTEM_PROPERTIES_H__
7 #define __SHOW_SYSTEM_PROPERTIES_H__
8 
9 namespace gpudb
10 {
21  {
27  options(std::map<std::string, std::string>())
28  {
29  }
30 
46  ShowSystemPropertiesRequest(const std::map<std::string, std::string>& options_):
47  options( options_ )
48  {
49  }
50 
61  std::map<std::string, std::string> options;
62  };
63 } // end namespace gpudb
64 
65 namespace avro
66 {
67  template<> struct codec_traits<gpudb::ShowSystemPropertiesRequest>
68  {
69  static void encode(Encoder& e, const gpudb::ShowSystemPropertiesRequest& v)
70  {
71  ::avro::encode(e, v.options);
72  }
73 
74  static void decode(Decoder& d, gpudb::ShowSystemPropertiesRequest& v)
75  {
76  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
77  {
78  const std::vector<size_t> fo = rd->fieldOrder();
79 
80  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
81  {
82  switch (*it)
83  {
84  case 0:
85  ::avro::decode(d, v.options);
86  break;
87 
88  default:
89  break;
90  }
91  }
92  }
93  else
94  {
95  ::avro::decode(d, v.options);
96  }
97  }
98  };
99 } // end namespace avro
100 
101 namespace gpudb
102 {
109  {
115  propertyMap(std::map<std::string, std::string>()),
116  info(std::map<std::string, std::string>())
117  {
118  }
119 
159  std::map<std::string, std::string> propertyMap;
160 
164  std::map<std::string, std::string> info;
165  };
166 } // end namespace gpudb
167 
168 namespace avro
169 {
170  template<> struct codec_traits<gpudb::ShowSystemPropertiesResponse>
171  {
172  static void encode(Encoder& e, const gpudb::ShowSystemPropertiesResponse& v)
173  {
174  ::avro::encode(e, v.propertyMap);
175  ::avro::encode(e, v.info);
176  }
177 
178  static void decode(Decoder& d, gpudb::ShowSystemPropertiesResponse& v)
179  {
180  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
181  {
182  const std::vector<size_t> fo = rd->fieldOrder();
183 
184  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
185  {
186  switch (*it)
187  {
188  case 0:
189  ::avro::decode(d, v.propertyMap);
190  break;
191 
192  case 1:
193  ::avro::decode(d, v.info);
194  break;
195 
196  default:
197  break;
198  }
199  }
200  }
201  else
202  {
203  ::avro::decode(d, v.propertyMap);
204  ::avro::decode(d, v.info);
205  }
206  }
207  };
208 } // end namespace avro
209 
210 #endif // __SHOW_SYSTEM_PROPERTIES_H__
ShowSystemPropertiesRequest(const std::map< std::string, std::string > &options_)
Constructs a ShowSystemPropertiesRequest object with the specified parameters.
A set of results returned by GPUdb::showSystemProperties.
A set of parameters for GPUdb::showSystemProperties.
std::map< std::string, std::string > options
Optional parameters.
std::map< std::string, std::string > propertyMap
A map of server configuration parameters and version information.
ShowSystemPropertiesResponse()
Constructs a ShowSystemPropertiesResponse object with default parameters.
ShowSystemPropertiesRequest()
Constructs a ShowSystemPropertiesRequest object with default parameters.
std::map< std::string, std::string > info
Additional information.