GPUdb C++ API  Version 7.0.19.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
filter_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 __FILTER_BY_SERIES_H__
7 #define __FILTER_BY_SERIES_H__
8 
9 namespace gpudb
10 {
11 
32  {
33 
39  tableName(std::string()),
40  viewName(std::string()),
41  trackId(std::string()),
42  targetTrackIds(std::vector<std::string>()),
43  options(std::map<std::string, std::string>())
44  {
45  }
46 
105  FilterBySeriesRequest(const std::string& tableName_, const std::string& viewName_, const std::string& trackId_, const std::vector<std::string>& targetTrackIds_, const std::map<std::string, std::string>& options_):
106  tableName( tableName_ ),
107  viewName( viewName_ ),
108  trackId( trackId_ ),
109  targetTrackIds( targetTrackIds_ ),
110  options( options_ )
111  {
112  }
113 
114  std::string tableName;
115  std::string viewName;
116  std::string trackId;
117  std::vector<std::string> targetTrackIds;
118  std::map<std::string, std::string> options;
119  };
120 }
121 
122 namespace avro
123 {
124  template<> struct codec_traits<gpudb::FilterBySeriesRequest>
125  {
126  static void encode(Encoder& e, const gpudb::FilterBySeriesRequest& v)
127  {
128  ::avro::encode(e, v.tableName);
129  ::avro::encode(e, v.viewName);
130  ::avro::encode(e, v.trackId);
131  ::avro::encode(e, v.targetTrackIds);
132  ::avro::encode(e, v.options);
133  }
134 
135  static void decode(Decoder& d, gpudb::FilterBySeriesRequest& v)
136  {
137  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
138  {
139  const std::vector<size_t> fo = rd->fieldOrder();
140 
141  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
142  {
143  switch (*it)
144  {
145  case 0:
146  ::avro::decode(d, v.tableName);
147  break;
148 
149  case 1:
150  ::avro::decode(d, v.viewName);
151  break;
152 
153  case 2:
154  ::avro::decode(d, v.trackId);
155  break;
156 
157  case 3:
158  ::avro::decode(d, v.targetTrackIds);
159  break;
160 
161  case 4:
162  ::avro::decode(d, v.options);
163  break;
164 
165  default:
166  break;
167  }
168  }
169  }
170  else
171  {
172  ::avro::decode(d, v.tableName);
173  ::avro::decode(d, v.viewName);
174  ::avro::decode(d, v.trackId);
175  ::avro::decode(d, v.targetTrackIds);
176  ::avro::decode(d, v.options);
177  }
178  }
179  };
180 }
181 
182 namespace gpudb
183 {
184 
205  {
206 
212  count(int64_t()),
213  info(std::map<std::string, std::string>())
214  {
215  }
216 
217  int64_t count;
218  std::map<std::string, std::string> info;
219  };
220 }
221 
222 namespace avro
223 {
224  template<> struct codec_traits<gpudb::FilterBySeriesResponse>
225  {
226  static void encode(Encoder& e, const gpudb::FilterBySeriesResponse& v)
227  {
228  ::avro::encode(e, v.count);
229  ::avro::encode(e, v.info);
230  }
231 
232  static void decode(Decoder& d, gpudb::FilterBySeriesResponse& v)
233  {
234  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
235  {
236  const std::vector<size_t> fo = rd->fieldOrder();
237 
238  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
239  {
240  switch (*it)
241  {
242  case 0:
243  ::avro::decode(d, v.count);
244  break;
245 
246  case 1:
247  ::avro::decode(d, v.info);
248  break;
249 
250  default:
251  break;
252  }
253  }
254  }
255  else
256  {
257  ::avro::decode(d, v.count);
258  ::avro::decode(d, v.info);
259  }
260  }
261  };
262 }
263 
264 #endif
std::map< std::string, std::string > info
std::vector< std::string > targetTrackIds
FilterBySeriesRequest(const std::string &tableName_, const std::string &viewName_, const std::string &trackId_, const std::vector< std::string > &targetTrackIds_, const std::map< std::string, std::string > &options_)
Constructs a FilterBySeriesRequest object with the specified parameters.
A set of output parameters for const.
FilterBySeriesRequest()
Constructs a FilterBySeriesRequest object with default parameter values.
A set of input parameters for const.
FilterBySeriesResponse()
Constructs a FilterBySeriesResponse object with default parameter values.
std::map< std::string, std::string > options