GPUdb C++ API  Version 5.2.0.0
alter_system_properties.h
Go to the documentation of this file.
1 /*
2  * This file was autogenerated by the GPUdb schema processor.
3  *
4  * DO NOT EDIT DIRECTLY.
5  */
6 #ifndef __ALTER_SYSTEM_PROPERTIES_H__
7 #define __ALTER_SYSTEM_PROPERTIES_H__
8 
9 namespace gpudb
10 {
11 
23  {
24 
30  propertyUpdatesMap(std::map<std::string, std::string>()),
31  options(std::map<std::string, std::string>())
32  {
33  }
34 
117  AlterSystemPropertiesRequest(const std::map<std::string, std::string>& propertyUpdatesMap, const std::map<std::string, std::string>& options):
118  propertyUpdatesMap(propertyUpdatesMap),
119  options(options)
120  {
121  }
122 
123  std::map<std::string, std::string> propertyUpdatesMap;
124  std::map<std::string, std::string> options;
125  };
126 }
127 
128 namespace avro
129 {
130  template<> struct codec_traits<gpudb::AlterSystemPropertiesRequest>
131  {
132  static void encode(Encoder& e, const gpudb::AlterSystemPropertiesRequest& v)
133  {
134  ::avro::encode(e, v.propertyUpdatesMap);
135  ::avro::encode(e, v.options);
136  }
137 
138  static void decode(Decoder& d, gpudb::AlterSystemPropertiesRequest& v)
139  {
140  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
141  {
142  const std::vector<size_t> fo = rd->fieldOrder();
143 
144  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
145  {
146  switch (*it)
147  {
148  case 0:
149  ::avro::decode(d, v.propertyUpdatesMap);
150  break;
151 
152  case 1:
153  ::avro::decode(d, v.options);
154  break;
155 
156  default:
157  break;
158  }
159  }
160  }
161  else
162  {
163  ::avro::decode(d, v.propertyUpdatesMap);
164  ::avro::decode(d, v.options);
165  }
166  }
167  };
168 }
169 
170 namespace gpudb
171 {
172 
184  {
185 
191  updatedPropertiesMap(std::map<std::string, std::string>())
192  {
193  }
194 
195  std::map<std::string, std::string> updatedPropertiesMap;
196  };
197 }
198 
199 namespace avro
200 {
201  template<> struct codec_traits<gpudb::AlterSystemPropertiesResponse>
202  {
203  static void encode(Encoder& e, const gpudb::AlterSystemPropertiesResponse& v)
204  {
205  ::avro::encode(e, v.updatedPropertiesMap);
206  }
207 
208  static void decode(Decoder& d, gpudb::AlterSystemPropertiesResponse& v)
209  {
210  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
211  {
212  const std::vector<size_t> fo = rd->fieldOrder();
213 
214  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
215  {
216  switch (*it)
217  {
218  case 0:
219  ::avro::decode(d, v.updatedPropertiesMap);
220  break;
221 
222  default:
223  break;
224  }
225  }
226  }
227  else
228  {
229  ::avro::decode(d, v.updatedPropertiesMap);
230  }
231  }
232  };
233 }
234 
235 #endif
AlterSystemPropertiesRequest(const std::map< std::string, std::string > &propertyUpdatesMap, const std::map< std::string, std::string > &options)
Constructs an AlterSystemPropertiesRequest object with the specified parameters.
A set of input parameters for alterSystemProperties(const AlterSystemPropertiesRequest&) const...
std::map< std::string, std::string > updatedPropertiesMap
std::map< std::string, std::string > propertyUpdatesMap
AlterSystemPropertiesResponse()
Constructs an AlterSystemPropertiesResponse object with default parameter values. ...
AlterSystemPropertiesRequest()
Constructs an AlterSystemPropertiesRequest object with default parameter values.
A set of output parameters for alterSystemProperties(const AlterSystemPropertiesRequest&) const...
std::map< std::string, std::string > options