GPUdb C++ API  Version 7.1.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
admin_alter_host.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 __ADMIN_ALTER_HOST_H__
7 #define __ADMIN_ALTER_HOST_H__
8 
9 namespace gpudb
10 {
11 
21  {
22 
28  host(std::string()),
29  options(std::map<std::string, std::string>())
30  {
31  }
32 
56  AdminAlterHostRequest(const std::string& host_, const std::map<std::string, std::string>& options_):
57  host( host_ ),
58  options( options_ )
59  {
60  }
61 
62  std::string host;
63  std::map<std::string, std::string> options;
64  };
65 }
66 
67 namespace avro
68 {
69  template<> struct codec_traits<gpudb::AdminAlterHostRequest>
70  {
71  static void encode(Encoder& e, const gpudb::AdminAlterHostRequest& v)
72  {
73  ::avro::encode(e, v.host);
74  ::avro::encode(e, v.options);
75  }
76 
77  static void decode(Decoder& d, gpudb::AdminAlterHostRequest& v)
78  {
79  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
80  {
81  const std::vector<size_t> fo = rd->fieldOrder();
82 
83  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
84  {
85  switch (*it)
86  {
87  case 0:
88  ::avro::decode(d, v.host);
89  break;
90 
91  case 1:
92  ::avro::decode(d, v.options);
93  break;
94 
95  default:
96  break;
97  }
98  }
99  }
100  else
101  {
102  ::avro::decode(d, v.host);
103  ::avro::decode(d, v.options);
104  }
105  }
106  };
107 }
108 
109 namespace gpudb
110 {
111 
121  {
122 
128  info(std::map<std::string, std::string>())
129  {
130  }
131 
132  std::map<std::string, std::string> info;
133  };
134 }
135 
136 namespace avro
137 {
138  template<> struct codec_traits<gpudb::AdminAlterHostResponse>
139  {
140  static void encode(Encoder& e, const gpudb::AdminAlterHostResponse& v)
141  {
142  ::avro::encode(e, v.info);
143  }
144 
145  static void decode(Decoder& d, gpudb::AdminAlterHostResponse& v)
146  {
147  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
148  {
149  const std::vector<size_t> fo = rd->fieldOrder();
150 
151  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
152  {
153  switch (*it)
154  {
155  case 0:
156  ::avro::decode(d, v.info);
157  break;
158 
159  default:
160  break;
161  }
162  }
163  }
164  else
165  {
166  ::avro::decode(d, v.info);
167  }
168  }
169  };
170 }
171 
172 #endif
A set of input parameters for const.
std::map< std::string, std::string > info
std::map< std::string, std::string > options
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 parameter values.
A set of output parameters for const.
AdminAlterHostRequest()
Constructs an AdminAlterHostRequest object with default parameter values.