GPUdb C++ API  Version 7.2.2.4
create_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 __CREATE_ENVIRONMENT_H__
7 #define __CREATE_ENVIRONMENT_H__
8 
9 namespace gpudb
10 {
21  {
27  environmentName(std::string()),
28  options(std::map<std::string, std::string>())
29  {
30  }
31 
40  CreateEnvironmentRequest(const std::string& environmentName_, const std::map<std::string, std::string>& options_):
41  environmentName( environmentName_ ),
42  options( options_ )
43  {
44  }
45 
49  std::string environmentName;
50 
54  std::map<std::string, std::string> options;
55  };
56 } // end namespace gpudb
57 
58 namespace avro
59 {
60  template<> struct codec_traits<gpudb::CreateEnvironmentRequest>
61  {
62  static void encode(Encoder& e, const gpudb::CreateEnvironmentRequest& v)
63  {
64  ::avro::encode(e, v.environmentName);
65  ::avro::encode(e, v.options);
66  }
67 
68  static void decode(Decoder& d, gpudb::CreateEnvironmentRequest& v)
69  {
70  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
71  {
72  const std::vector<size_t> fo = rd->fieldOrder();
73 
74  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
75  {
76  switch (*it)
77  {
78  case 0:
79  ::avro::decode(d, v.environmentName);
80  break;
81 
82  case 1:
83  ::avro::decode(d, v.options);
84  break;
85 
86  default:
87  break;
88  }
89  }
90  }
91  else
92  {
93  ::avro::decode(d, v.environmentName);
94  ::avro::decode(d, v.options);
95  }
96  }
97  };
98 } // end namespace avro
99 
100 namespace gpudb
101 {
108  {
114  environmentName(std::string()),
115  info(std::map<std::string, std::string>())
116  {
117  }
118 
123  std::string environmentName;
124 
128  std::map<std::string, std::string> info;
129  };
130 } // end namespace gpudb
131 
132 namespace avro
133 {
134  template<> struct codec_traits<gpudb::CreateEnvironmentResponse>
135  {
136  static void encode(Encoder& e, const gpudb::CreateEnvironmentResponse& v)
137  {
138  ::avro::encode(e, v.environmentName);
139  ::avro::encode(e, v.info);
140  }
141 
142  static void decode(Decoder& d, gpudb::CreateEnvironmentResponse& v)
143  {
144  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
145  {
146  const std::vector<size_t> fo = rd->fieldOrder();
147 
148  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
149  {
150  switch (*it)
151  {
152  case 0:
153  ::avro::decode(d, v.environmentName);
154  break;
155 
156  case 1:
157  ::avro::decode(d, v.info);
158  break;
159 
160  default:
161  break;
162  }
163  }
164  }
165  else
166  {
167  ::avro::decode(d, v.environmentName);
168  ::avro::decode(d, v.info);
169  }
170  }
171  };
172 } // end namespace avro
173 
174 #endif // __CREATE_ENVIRONMENT_H__
A set of results returned by GPUdb::createEnvironment.
CreateEnvironmentRequest(const std::string &environmentName_, const std::map< std::string, std::string > &options_)
Constructs a CreateEnvironmentRequest object with the specified parameters.
std::string environmentName
Name of the environment to be created.
std::map< std::string, std::string > info
Additional information.
std::string environmentName
Value of environmentName.
CreateEnvironmentRequest()
Constructs a CreateEnvironmentRequest object with default parameters.
std::map< std::string, std::string > options
Optional parameters.
A set of parameters for GPUdb::createEnvironment.
CreateEnvironmentResponse()
Constructs a CreateEnvironmentResponse object with default parameters.