GPUdb C++ API  Version 5.2.0.0
update_records_by_series.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 __UPDATE_RECORDS_BY_SERIES_H__
7 #define __UPDATE_RECORDS_BY_SERIES_H__
8 
9 namespace gpudb
10 {
11 
21  {
22 
28  tableName(std::string()),
29  worldTableName(std::string()),
30  viewName(std::string()),
31  reserved(std::vector<std::string>()),
32  options(std::map<std::string, std::string>())
33  {
34  }
35 
53  UpdateRecordsBySeriesRequest(const std::string& tableName, const std::string& worldTableName, const std::string& viewName, const std::vector<std::string>& reserved, const std::map<std::string, std::string>& options):
54  tableName(tableName),
55  worldTableName(worldTableName),
56  viewName(viewName),
57  reserved(reserved),
58  options(options)
59  {
60  }
61 
62  std::string tableName;
63  std::string worldTableName;
64  std::string viewName;
65  std::vector<std::string> reserved;
66  std::map<std::string, std::string> options;
67  };
68 }
69 
70 namespace avro
71 {
72  template<> struct codec_traits<gpudb::UpdateRecordsBySeriesRequest>
73  {
74  static void encode(Encoder& e, const gpudb::UpdateRecordsBySeriesRequest& v)
75  {
76  ::avro::encode(e, v.tableName);
77  ::avro::encode(e, v.worldTableName);
78  ::avro::encode(e, v.viewName);
79  ::avro::encode(e, v.reserved);
80  ::avro::encode(e, v.options);
81  }
82 
83  static void decode(Decoder& d, gpudb::UpdateRecordsBySeriesRequest& v)
84  {
85  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
86  {
87  const std::vector<size_t> fo = rd->fieldOrder();
88 
89  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
90  {
91  switch (*it)
92  {
93  case 0:
94  ::avro::decode(d, v.tableName);
95  break;
96 
97  case 1:
98  ::avro::decode(d, v.worldTableName);
99  break;
100 
101  case 2:
102  ::avro::decode(d, v.viewName);
103  break;
104 
105  case 3:
106  ::avro::decode(d, v.reserved);
107  break;
108 
109  case 4:
110  ::avro::decode(d, v.options);
111  break;
112 
113  default:
114  break;
115  }
116  }
117  }
118  else
119  {
120  ::avro::decode(d, v.tableName);
121  ::avro::decode(d, v.worldTableName);
122  ::avro::decode(d, v.viewName);
123  ::avro::decode(d, v.reserved);
124  ::avro::decode(d, v.options);
125  }
126  }
127  };
128 }
129 
130 namespace gpudb
131 {
132 
142  {
143 
149  count(int32_t())
150  {
151  }
152 
153  int32_t count;
154  };
155 }
156 
157 namespace avro
158 {
159  template<> struct codec_traits<gpudb::UpdateRecordsBySeriesResponse>
160  {
161  static void encode(Encoder& e, const gpudb::UpdateRecordsBySeriesResponse& v)
162  {
163  ::avro::encode(e, v.count);
164  }
165 
166  static void decode(Decoder& d, gpudb::UpdateRecordsBySeriesResponse& v)
167  {
168  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
169  {
170  const std::vector<size_t> fo = rd->fieldOrder();
171 
172  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
173  {
174  switch (*it)
175  {
176  case 0:
177  ::avro::decode(d, v.count);
178  break;
179 
180  default:
181  break;
182  }
183  }
184  }
185  else
186  {
187  ::avro::decode(d, v.count);
188  }
189  }
190  };
191 }
192 
193 #endif
std::map< std::string, std::string > options
UpdateRecordsBySeriesRequest(const std::string &tableName, const std::string &worldTableName, const std::string &viewName, const std::vector< std::string > &reserved, const std::map< std::string, std::string > &options)
Constructs an UpdateRecordsBySeriesRequest object with the specified parameters.
UpdateRecordsBySeriesRequest()
Constructs an UpdateRecordsBySeriesRequest object with default parameter values.
UpdateRecordsBySeriesResponse()
Constructs an UpdateRecordsBySeriesResponse object with default parameter values. ...
A set of input parameters for updateRecordsBySeries(const UpdateRecordsBySeriesRequest&) const...
A set of output parameters for updateRecordsBySeries(const UpdateRecordsBySeriesRequest&) const...