GPUdb C++ API  Version 7.1.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
create_trigger_by_area.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 __CREATE_TRIGGER_BY_AREA_H__
7 #define __CREATE_TRIGGER_BY_AREA_H__
8 
9 namespace gpudb
10 {
11 
39  {
40 
46  requestId(std::string()),
47  tableNames(std::vector<std::string>()),
48  xColumnName(std::string()),
49  xVector(std::vector<double>()),
50  yColumnName(std::string()),
51  yVector(std::vector<double>()),
52  options(std::map<std::string, std::string>())
53  {
54  }
55 
86  CreateTriggerByAreaRequest(const std::string& requestId_, const std::vector<std::string>& tableNames_, const std::string& xColumnName_, const std::vector<double>& xVector_, const std::string& yColumnName_, const std::vector<double>& yVector_, const std::map<std::string, std::string>& options_):
87  requestId( requestId_ ),
88  tableNames( tableNames_ ),
89  xColumnName( xColumnName_ ),
90  xVector( xVector_ ),
91  yColumnName( yColumnName_ ),
92  yVector( yVector_ ),
93  options( options_ )
94  {
95  }
96 
97  std::string requestId;
98  std::vector<std::string> tableNames;
99  std::string xColumnName;
100  std::vector<double> xVector;
101  std::string yColumnName;
102  std::vector<double> yVector;
103  std::map<std::string, std::string> options;
104  };
105 }
106 
107 namespace avro
108 {
109  template<> struct codec_traits<gpudb::CreateTriggerByAreaRequest>
110  {
111  static void encode(Encoder& e, const gpudb::CreateTriggerByAreaRequest& v)
112  {
113  ::avro::encode(e, v.requestId);
114  ::avro::encode(e, v.tableNames);
115  ::avro::encode(e, v.xColumnName);
116  ::avro::encode(e, v.xVector);
117  ::avro::encode(e, v.yColumnName);
118  ::avro::encode(e, v.yVector);
119  ::avro::encode(e, v.options);
120  }
121 
122  static void decode(Decoder& d, gpudb::CreateTriggerByAreaRequest& v)
123  {
124  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
125  {
126  const std::vector<size_t> fo = rd->fieldOrder();
127 
128  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
129  {
130  switch (*it)
131  {
132  case 0:
133  ::avro::decode(d, v.requestId);
134  break;
135 
136  case 1:
137  ::avro::decode(d, v.tableNames);
138  break;
139 
140  case 2:
141  ::avro::decode(d, v.xColumnName);
142  break;
143 
144  case 3:
145  ::avro::decode(d, v.xVector);
146  break;
147 
148  case 4:
149  ::avro::decode(d, v.yColumnName);
150  break;
151 
152  case 5:
153  ::avro::decode(d, v.yVector);
154  break;
155 
156  case 6:
157  ::avro::decode(d, v.options);
158  break;
159 
160  default:
161  break;
162  }
163  }
164  }
165  else
166  {
167  ::avro::decode(d, v.requestId);
168  ::avro::decode(d, v.tableNames);
169  ::avro::decode(d, v.xColumnName);
170  ::avro::decode(d, v.xVector);
171  ::avro::decode(d, v.yColumnName);
172  ::avro::decode(d, v.yVector);
173  ::avro::decode(d, v.options);
174  }
175  }
176  };
177 }
178 
179 namespace gpudb
180 {
181 
209  {
210 
216  triggerId(std::string()),
217  info(std::map<std::string, std::string>())
218  {
219  }
220 
221  std::string triggerId;
222  std::map<std::string, std::string> info;
223  };
224 }
225 
226 namespace avro
227 {
228  template<> struct codec_traits<gpudb::CreateTriggerByAreaResponse>
229  {
230  static void encode(Encoder& e, const gpudb::CreateTriggerByAreaResponse& v)
231  {
232  ::avro::encode(e, v.triggerId);
233  ::avro::encode(e, v.info);
234  }
235 
236  static void decode(Decoder& d, gpudb::CreateTriggerByAreaResponse& v)
237  {
238  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
239  {
240  const std::vector<size_t> fo = rd->fieldOrder();
241 
242  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
243  {
244  switch (*it)
245  {
246  case 0:
247  ::avro::decode(d, v.triggerId);
248  break;
249 
250  case 1:
251  ::avro::decode(d, v.info);
252  break;
253 
254  default:
255  break;
256  }
257  }
258  }
259  else
260  {
261  ::avro::decode(d, v.triggerId);
262  ::avro::decode(d, v.info);
263  }
264  }
265  };
266 }
267 
268 #endif
CreateTriggerByAreaResponse()
Constructs a CreateTriggerByAreaResponse object with default parameter values.
std::map< std::string, std::string > options
A set of output parameters for const.
CreateTriggerByAreaRequest()
Constructs a CreateTriggerByAreaRequest object with default parameter values.
std::vector< std::string > tableNames
A set of input parameters for const.
CreateTriggerByAreaRequest(const std::string &requestId_, const std::vector< std::string > &tableNames_, const std::string &xColumnName_, const std::vector< double > &xVector_, const std::string &yColumnName_, const std::vector< double > &yVector_, const std::map< std::string, std::string > &options_)
Constructs a CreateTriggerByAreaRequest object with the specified parameters.
std::map< std::string, std::string > info