GPUdb C++ API  Version 7.2.2.4
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 
93  AlterTierRequest(const std::string& name_, const std::map<std::string, std::string>& options_):
94  name( name_ ),
95  options( options_ )
96  {
97  }
98 
102  std::string name;
103 
142  std::map<std::string, std::string> options;
143  };
144 } // end namespace gpudb
145 
146 namespace avro
147 {
148  template<> struct codec_traits<gpudb::AlterTierRequest>
149  {
150  static void encode(Encoder& e, const gpudb::AlterTierRequest& v)
151  {
152  ::avro::encode(e, v.name);
153  ::avro::encode(e, v.options);
154  }
155 
156  static void decode(Decoder& d, gpudb::AlterTierRequest& v)
157  {
158  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
159  {
160  const std::vector<size_t> fo = rd->fieldOrder();
161 
162  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
163  {
164  switch (*it)
165  {
166  case 0:
167  ::avro::decode(d, v.name);
168  break;
169 
170  case 1:
171  ::avro::decode(d, v.options);
172  break;
173 
174  default:
175  break;
176  }
177  }
178  }
179  else
180  {
181  ::avro::decode(d, v.name);
182  ::avro::decode(d, v.options);
183  }
184  }
185  };
186 } // end namespace avro
187 
188 namespace gpudb
189 {
195  {
200  name(std::string()),
201  info(std::map<std::string, std::string>())
202  {
203  }
204 
208  std::string name;
209 
213  std::map<std::string, std::string> info;
214  };
215 } // end namespace gpudb
216 
217 namespace avro
218 {
219  template<> struct codec_traits<gpudb::AlterTierResponse>
220  {
221  static void encode(Encoder& e, const gpudb::AlterTierResponse& v)
222  {
223  ::avro::encode(e, v.name);
224  ::avro::encode(e, v.info);
225  }
226 
227  static void decode(Decoder& d, gpudb::AlterTierResponse& v)
228  {
229  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
230  {
231  const std::vector<size_t> fo = rd->fieldOrder();
232 
233  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
234  {
235  switch (*it)
236  {
237  case 0:
238  ::avro::decode(d, v.name);
239  break;
240 
241  case 1:
242  ::avro::decode(d, v.info);
243  break;
244 
245  default:
246  break;
247  }
248  }
249  }
250  else
251  {
252  ::avro::decode(d, v.name);
253  ::avro::decode(d, v.info);
254  }
255  }
256  };
257 } // end namespace avro
258 
259 #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:93
AlterTierResponse()
Constructs an AlterTierResponse object with default parameters.
Definition: alter_tier.h:199
std::map< std::string, std::string > info
Additional information.
Definition: alter_tier.h:213
AlterTierRequest()
Constructs an AlterTierRequest object with default parameters.
Definition: alter_tier.h:30
std::string name
Value of name.
Definition: alter_tier.h:208
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:102
std::map< std::string, std::string > options
Optional parameters.
Definition: alter_tier.h:142
A set of results returned by GPUdb::alterTier.
Definition: alter_tier.h:194