GPUdb C++ API  Version 7.2.3.0
alter_tier.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_TIER_H__
7 #define __ALTER_TIER_H__
8 
9 namespace gpudb
10 {
26  {
31  name(std::string()),
32  options(std::map<std::string, std::string>())
33  {
34  }
35 
95  AlterTierRequest(const std::string& name_, const std::map<std::string, std::string>& options_):
96  name( name_ ),
97  options( options_ )
98  {
99  }
100 
105  std::string name;
106 
145  std::map<std::string, std::string> options;
146  };
147 } // end namespace gpudb
148 
149 namespace avro
150 {
151  template<> struct codec_traits<gpudb::AlterTierRequest>
152  {
153  static void encode(Encoder& e, const gpudb::AlterTierRequest& v)
154  {
155  ::avro::encode(e, v.name);
156  ::avro::encode(e, v.options);
157  }
158 
159  static void decode(Decoder& d, gpudb::AlterTierRequest& v)
160  {
161  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
162  {
163  const std::vector<size_t> fo = rd->fieldOrder();
164 
165  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
166  {
167  switch (*it)
168  {
169  case 0:
170  ::avro::decode(d, v.name);
171  break;
172 
173  case 1:
174  ::avro::decode(d, v.options);
175  break;
176 
177  default:
178  break;
179  }
180  }
181  }
182  else
183  {
184  ::avro::decode(d, v.name);
185  ::avro::decode(d, v.options);
186  }
187  }
188  };
189 } // end namespace avro
190 
191 namespace gpudb
192 {
198  {
203  name(std::string()),
204  info(std::map<std::string, std::string>())
205  {
206  }
207 
211  std::string name;
212 
216  std::map<std::string, std::string> info;
217  };
218 } // end namespace gpudb
219 
220 namespace avro
221 {
222  template<> struct codec_traits<gpudb::AlterTierResponse>
223  {
224  static void encode(Encoder& e, const gpudb::AlterTierResponse& v)
225  {
226  ::avro::encode(e, v.name);
227  ::avro::encode(e, v.info);
228  }
229 
230  static void decode(Decoder& d, gpudb::AlterTierResponse& v)
231  {
232  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
233  {
234  const std::vector<size_t> fo = rd->fieldOrder();
235 
236  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
237  {
238  switch (*it)
239  {
240  case 0:
241  ::avro::decode(d, v.name);
242  break;
243 
244  case 1:
245  ::avro::decode(d, v.info);
246  break;
247 
248  default:
249  break;
250  }
251  }
252  }
253  else
254  {
255  ::avro::decode(d, v.name);
256  ::avro::decode(d, v.info);
257  }
258  }
259  };
260 } // end namespace avro
261 
262 #endif // __ALTER_TIER_H__
AlterTierRequest(const std::string &name_, const std::map< std::string, std::string > &options_)
Constructs an AlterTierRequest object with the specified parameters.
Definition: alter_tier.h:95
AlterTierResponse()
Constructs an AlterTierResponse object with default parameters.
Definition: alter_tier.h:202
std::map< std::string, std::string > info
Additional information.
Definition: alter_tier.h:216
AlterTierRequest()
Constructs an AlterTierRequest object with default parameters.
Definition: alter_tier.h:30
std::string name
Value of name.
Definition: alter_tier.h:211
A set of parameters for GPUdb::alterTier.
Definition: alter_tier.h:25
std::string name
Name of the tier to be altered.
Definition: alter_tier.h:105
std::map< std::string, std::string > options
Optional parameters.
Definition: alter_tier.h:145
A set of results returned by GPUdb::alterTier.
Definition: alter_tier.h:197