GPUdb C++ API  Version 7.2.2.4
drop_environment.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 __DROP_ENVIRONMENT_H__
7 #define __DROP_ENVIRONMENT_H__
8 
9 namespace gpudb
10 {
20  {
25  environmentName(std::string()),
26  options(std::map<std::string, std::string>())
27  {
28  }
29 
64  DropEnvironmentRequest(const std::string& environmentName_, const std::map<std::string, std::string>& options_):
65  environmentName( environmentName_ ),
66  options( options_ )
67  {
68  }
69 
74  std::string environmentName;
75 
98  std::map<std::string, std::string> options;
99  };
100 } // end namespace gpudb
101 
102 namespace avro
103 {
104  template<> struct codec_traits<gpudb::DropEnvironmentRequest>
105  {
106  static void encode(Encoder& e, const gpudb::DropEnvironmentRequest& v)
107  {
108  ::avro::encode(e, v.environmentName);
109  ::avro::encode(e, v.options);
110  }
111 
112  static void decode(Decoder& d, gpudb::DropEnvironmentRequest& v)
113  {
114  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
115  {
116  const std::vector<size_t> fo = rd->fieldOrder();
117 
118  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
119  {
120  switch (*it)
121  {
122  case 0:
123  ::avro::decode(d, v.environmentName);
124  break;
125 
126  case 1:
127  ::avro::decode(d, v.options);
128  break;
129 
130  default:
131  break;
132  }
133  }
134  }
135  else
136  {
137  ::avro::decode(d, v.environmentName);
138  ::avro::decode(d, v.options);
139  }
140  }
141  };
142 } // end namespace avro
143 
144 namespace gpudb
145 {
152  {
157  environmentName(std::string()),
158  info(std::map<std::string, std::string>())
159  {
160  }
161 
166  std::string environmentName;
167 
171  std::map<std::string, std::string> info;
172  };
173 } // end namespace gpudb
174 
175 namespace avro
176 {
177  template<> struct codec_traits<gpudb::DropEnvironmentResponse>
178  {
179  static void encode(Encoder& e, const gpudb::DropEnvironmentResponse& v)
180  {
181  ::avro::encode(e, v.environmentName);
182  ::avro::encode(e, v.info);
183  }
184 
185  static void decode(Decoder& d, gpudb::DropEnvironmentResponse& v)
186  {
187  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
188  {
189  const std::vector<size_t> fo = rd->fieldOrder();
190 
191  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
192  {
193  switch (*it)
194  {
195  case 0:
196  ::avro::decode(d, v.environmentName);
197  break;
198 
199  case 1:
200  ::avro::decode(d, v.info);
201  break;
202 
203  default:
204  break;
205  }
206  }
207  }
208  else
209  {
210  ::avro::decode(d, v.environmentName);
211  ::avro::decode(d, v.info);
212  }
213  }
214  };
215 } // end namespace avro
216 
217 #endif // __DROP_ENVIRONMENT_H__
A set of parameters for GPUdb::dropEnvironment.
DropEnvironmentResponse()
Constructs a DropEnvironmentResponse object with default parameters.
DropEnvironmentRequest(const std::string &environmentName_, const std::map< std::string, std::string > &options_)
Constructs a DropEnvironmentRequest object with the specified parameters.
std::string environmentName
Value of environmentName.
DropEnvironmentRequest()
Constructs a DropEnvironmentRequest object with default parameters.
A set of results returned by GPUdb::dropEnvironment.
std::string environmentName
Name of the environment to be dropped.
std::map< std::string, std::string > options
Optional parameters.
std::map< std::string, std::string > info
Additional information.