GPUdb C++ API  Version 7.2.2.4
admin_remove_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_REMOVE_HOST_H__
7 #define __ADMIN_REMOVE_HOST_H__
8 
9 namespace gpudb
10 {
28  {
33  host(std::string()),
34  options(std::map<std::string, std::string>())
35  {
36  }
37 
67  AdminRemoveHostRequest(const std::string& host_, const std::map<std::string, std::string>& options_):
68  host( host_ ),
69  options( options_ )
70  {
71  }
72 
78  std::string host;
79 
99  std::map<std::string, std::string> options;
100  };
101 } // end namespace gpudb
102 
103 namespace avro
104 {
105  template<> struct codec_traits<gpudb::AdminRemoveHostRequest>
106  {
107  static void encode(Encoder& e, const gpudb::AdminRemoveHostRequest& v)
108  {
109  ::avro::encode(e, v.host);
110  ::avro::encode(e, v.options);
111  }
112 
113  static void decode(Decoder& d, gpudb::AdminRemoveHostRequest& v)
114  {
115  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
116  {
117  const std::vector<size_t> fo = rd->fieldOrder();
118 
119  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
120  {
121  switch (*it)
122  {
123  case 0:
124  ::avro::decode(d, v.host);
125  break;
126 
127  case 1:
128  ::avro::decode(d, v.options);
129  break;
130 
131  default:
132  break;
133  }
134  }
135  }
136  else
137  {
138  ::avro::decode(d, v.host);
139  ::avro::decode(d, v.options);
140  }
141  }
142  };
143 } // end namespace avro
144 
145 namespace gpudb
146 {
153  {
159  info(std::map<std::string, std::string>())
160  {
161  }
162 
166  std::map<std::string, std::string> info;
167  };
168 } // end namespace gpudb
169 
170 namespace avro
171 {
172  template<> struct codec_traits<gpudb::AdminRemoveHostResponse>
173  {
174  static void encode(Encoder& e, const gpudb::AdminRemoveHostResponse& v)
175  {
176  ::avro::encode(e, v.info);
177  }
178 
179  static void decode(Decoder& d, gpudb::AdminRemoveHostResponse& v)
180  {
181  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
182  {
183  const std::vector<size_t> fo = rd->fieldOrder();
184 
185  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
186  {
187  switch (*it)
188  {
189  case 0:
190  ::avro::decode(d, v.info);
191  break;
192 
193  default:
194  break;
195  }
196  }
197  }
198  else
199  {
200  ::avro::decode(d, v.info);
201  }
202  }
203  };
204 } // end namespace avro
205 
206 #endif // __ADMIN_REMOVE_HOST_H__
AdminRemoveHostRequest(const std::string &host_, const std::map< std::string, std::string > &options_)
Constructs an AdminRemoveHostRequest object with the specified parameters.
std::string host
Identifies the host this applies to.
AdminRemoveHostResponse()
Constructs an AdminRemoveHostResponse object with default parameters.
A set of parameters for GPUdb::adminRemoveHost.
A set of results returned by GPUdb::adminRemoveHost.
std::map< std::string, std::string > info
Additional information.
AdminRemoveHostRequest()
Constructs an AdminRemoveHostRequest object with default parameters.
std::map< std::string, std::string > options
Optional parameters.