GPUdb C++ API  Version 7.0.19.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
filter_by_list.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_LIST_H__
7 #define __FILTER_BY_LIST_H__
8 
9 namespace gpudb
10 {
11 
32  {
33 
39  tableName(std::string()),
40  viewName(std::string()),
41  columnValuesMap(std::map<std::string, std::vector<std::string> >()),
42  options(std::map<std::string, std::string>())
43  {
44  }
45 
89  FilterByListRequest(const std::string& tableName_, const std::string& viewName_, const std::map<std::string, std::vector<std::string> >& columnValuesMap_, const std::map<std::string, std::string>& options_):
90  tableName( tableName_ ),
91  viewName( viewName_ ),
92  columnValuesMap( columnValuesMap_ ),
93  options( options_ )
94  {
95  }
96 
97  std::string tableName;
98  std::string viewName;
99  std::map<std::string, std::vector<std::string> > columnValuesMap;
100  std::map<std::string, std::string> options;
101  };
102 }
103 
104 namespace avro
105 {
106  template<> struct codec_traits<gpudb::FilterByListRequest>
107  {
108  static void encode(Encoder& e, const gpudb::FilterByListRequest& v)
109  {
110  ::avro::encode(e, v.tableName);
111  ::avro::encode(e, v.viewName);
112  ::avro::encode(e, v.columnValuesMap);
113  ::avro::encode(e, v.options);
114  }
115 
116  static void decode(Decoder& d, gpudb::FilterByListRequest& v)
117  {
118  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
119  {
120  const std::vector<size_t> fo = rd->fieldOrder();
121 
122  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
123  {
124  switch (*it)
125  {
126  case 0:
127  ::avro::decode(d, v.tableName);
128  break;
129 
130  case 1:
131  ::avro::decode(d, v.viewName);
132  break;
133 
134  case 2:
135  ::avro::decode(d, v.columnValuesMap);
136  break;
137 
138  case 3:
139  ::avro::decode(d, v.options);
140  break;
141 
142  default:
143  break;
144  }
145  }
146  }
147  else
148  {
149  ::avro::decode(d, v.tableName);
150  ::avro::decode(d, v.viewName);
151  ::avro::decode(d, v.columnValuesMap);
152  ::avro::decode(d, v.options);
153  }
154  }
155  };
156 }
157 
158 namespace gpudb
159 {
160 
181  {
182 
188  count(int64_t()),
189  info(std::map<std::string, std::string>())
190  {
191  }
192 
193  int64_t count;
194  std::map<std::string, std::string> info;
195  };
196 }
197 
198 namespace avro
199 {
200  template<> struct codec_traits<gpudb::FilterByListResponse>
201  {
202  static void encode(Encoder& e, const gpudb::FilterByListResponse& v)
203  {
204  ::avro::encode(e, v.count);
205  ::avro::encode(e, v.info);
206  }
207 
208  static void decode(Decoder& d, gpudb::FilterByListResponse& v)
209  {
210  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
211  {
212  const std::vector<size_t> fo = rd->fieldOrder();
213 
214  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
215  {
216  switch (*it)
217  {
218  case 0:
219  ::avro::decode(d, v.count);
220  break;
221 
222  case 1:
223  ::avro::decode(d, v.info);
224  break;
225 
226  default:
227  break;
228  }
229  }
230  }
231  else
232  {
233  ::avro::decode(d, v.count);
234  ::avro::decode(d, v.info);
235  }
236  }
237  };
238 }
239 
240 #endif
std::map< std::string, std::string > info
std::map< std::string, std::string > options
FilterByListRequest()
Constructs a FilterByListRequest object with default parameter values.
A set of input parameters for const.
FilterByListResponse()
Constructs a FilterByListResponse object with default parameter values.
A set of output parameters for const.
FilterByListRequest(const std::string &tableName_, const std::string &viewName_, const std::map< std::string, std::vector< std::string > > &columnValuesMap_, const std::map< std::string, std::string > &options_)
Constructs a FilterByListRequest object with the specified parameters.
std::map< std::string, std::vector< std::string > > columnValuesMap