GPUdb C++ API  Version 7.1.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
alter_tier.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_TIER_H__
7 #define __ALTER_TIER_H__
8 
9 namespace gpudb
10 {
11 
28  {
29 
34  name(std::string()),
35  options(std::map<std::string, std::string>())
36  {
37  }
38 
78  AlterTierRequest(const std::string& name_, const std::map<std::string, std::string>& options_):
79  name( name_ ),
80  options( options_ )
81  {
82  }
83 
84  std::string name;
85  std::map<std::string, std::string> options;
86  };
87 }
88 
89 namespace avro
90 {
91  template<> struct codec_traits<gpudb::AlterTierRequest>
92  {
93  static void encode(Encoder& e, const gpudb::AlterTierRequest& v)
94  {
95  ::avro::encode(e, v.name);
96  ::avro::encode(e, v.options);
97  }
98 
99  static void decode(Decoder& d, gpudb::AlterTierRequest& v)
100  {
101  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
102  {
103  const std::vector<size_t> fo = rd->fieldOrder();
104 
105  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
106  {
107  switch (*it)
108  {
109  case 0:
110  ::avro::decode(d, v.name);
111  break;
112 
113  case 1:
114  ::avro::decode(d, v.options);
115  break;
116 
117  default:
118  break;
119  }
120  }
121  }
122  else
123  {
124  ::avro::decode(d, v.name);
125  ::avro::decode(d, v.options);
126  }
127  }
128  };
129 }
130 
131 namespace gpudb
132 {
133 
150  {
151 
157  name(std::string()),
158  info(std::map<std::string, std::string>())
159  {
160  }
161 
162  std::string name;
163  std::map<std::string, std::string> info;
164  };
165 }
166 
167 namespace avro
168 {
169  template<> struct codec_traits<gpudb::AlterTierResponse>
170  {
171  static void encode(Encoder& e, const gpudb::AlterTierResponse& v)
172  {
173  ::avro::encode(e, v.name);
174  ::avro::encode(e, v.info);
175  }
176 
177  static void decode(Decoder& d, gpudb::AlterTierResponse& v)
178  {
179  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
180  {
181  const std::vector<size_t> fo = rd->fieldOrder();
182 
183  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
184  {
185  switch (*it)
186  {
187  case 0:
188  ::avro::decode(d, v.name);
189  break;
190 
191  case 1:
192  ::avro::decode(d, v.info);
193  break;
194 
195  default:
196  break;
197  }
198  }
199  }
200  else
201  {
202  ::avro::decode(d, v.name);
203  ::avro::decode(d, v.info);
204  }
205  }
206  };
207 }
208 
209 #endif
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:78
AlterTierResponse()
Constructs an AlterTierResponse object with default parameter values.
Definition: alter_tier.h:156
std::map< std::string, std::string > info
Definition: alter_tier.h:163
AlterTierRequest()
Constructs an AlterTierRequest object with default parameter values.
Definition: alter_tier.h:33
A set of input parameters for const.
Definition: alter_tier.h:27
std::map< std::string, std::string > options
Definition: alter_tier.h:85
A set of output parameters for const.
Definition: alter_tier.h:149