GPUdb C++ API  Version 7.2.2.4
admin_alter_host.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 __ADMIN_ALTER_HOST_H__
7 #define __ADMIN_ALTER_HOST_H__
8 
9 namespace gpudb
10 {
21  {
26  host(std::string()),
27  options(std::map<std::string, std::string>())
28  {
29  }
30 
64  AdminAlterHostRequest(const std::string& host_, const std::map<std::string, std::string>& options_):
65  host( host_ ),
66  options( options_ )
67  {
68  }
69 
75  std::string host;
76 
97  std::map<std::string, std::string> options;
98  };
99 } // end namespace gpudb
100 
101 namespace avro
102 {
103  template<> struct codec_traits<gpudb::AdminAlterHostRequest>
104  {
105  static void encode(Encoder& e, const gpudb::AdminAlterHostRequest& v)
106  {
107  ::avro::encode(e, v.host);
108  ::avro::encode(e, v.options);
109  }
110 
111  static void decode(Decoder& d, gpudb::AdminAlterHostRequest& v)
112  {
113  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
114  {
115  const std::vector<size_t> fo = rd->fieldOrder();
116 
117  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
118  {
119  switch (*it)
120  {
121  case 0:
122  ::avro::decode(d, v.host);
123  break;
124 
125  case 1:
126  ::avro::decode(d, v.options);
127  break;
128 
129  default:
130  break;
131  }
132  }
133  }
134  else
135  {
136  ::avro::decode(d, v.host);
137  ::avro::decode(d, v.options);
138  }
139  }
140  };
141 } // end namespace avro
142 
143 namespace gpudb
144 {
151  {
156  info(std::map<std::string, std::string>())
157  {
158  }
159 
163  std::map<std::string, std::string> info;
164  };
165 } // end namespace gpudb
166 
167 namespace avro
168 {
169  template<> struct codec_traits<gpudb::AdminAlterHostResponse>
170  {
171  static void encode(Encoder& e, const gpudb::AdminAlterHostResponse& v)
172  {
173  ::avro::encode(e, v.info);
174  }
175 
176  static void decode(Decoder& d, gpudb::AdminAlterHostResponse& v)
177  {
178  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
179  {
180  const std::vector<size_t> fo = rd->fieldOrder();
181 
182  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
183  {
184  switch (*it)
185  {
186  case 0:
187  ::avro::decode(d, v.info);
188  break;
189 
190  default:
191  break;
192  }
193  }
194  }
195  else
196  {
197  ::avro::decode(d, v.info);
198  }
199  }
200  };
201 } // end namespace avro
202 
203 #endif // __ADMIN_ALTER_HOST_H__
std::string host
Identifies the host this applies to.
A set of parameters for GPUdb::adminAlterHost.
std::map< std::string, std::string > info
Additional information.
std::map< std::string, std::string > options
Optional parameters.
AdminAlterHostRequest(const std::string &host_, const std::map< std::string, std::string > &options_)
Constructs an AdminAlterHostRequest object with the specified parameters.
AdminAlterHostResponse()
Constructs an AdminAlterHostResponse object with default parameters.
A set of results returned by GPUdb::adminAlterHost.
AdminAlterHostRequest()
Constructs an AdminAlterHostRequest object with default parameters.