GPUdb C++ API  Version 7.1.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
delete_records.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 __DELETE_RECORDS_H__
7 #define __DELETE_RECORDS_H__
8 
9 namespace gpudb
10 {
11 
26  {
27 
33  tableName(std::string()),
34  expressions(std::vector<std::string>()),
35  options(std::map<std::string, std::string>())
36  {
37  }
38 
87  DeleteRecordsRequest(const std::string& tableName_, const std::vector<std::string>& expressions_, const std::map<std::string, std::string>& options_):
88  tableName( tableName_ ),
89  expressions( expressions_ ),
90  options( options_ )
91  {
92  }
93 
94  std::string tableName;
95  std::vector<std::string> expressions;
96  std::map<std::string, std::string> options;
97  };
98 }
99 
100 namespace avro
101 {
102  template<> struct codec_traits<gpudb::DeleteRecordsRequest>
103  {
104  static void encode(Encoder& e, const gpudb::DeleteRecordsRequest& v)
105  {
106  ::avro::encode(e, v.tableName);
107  ::avro::encode(e, v.expressions);
108  ::avro::encode(e, v.options);
109  }
110 
111  static void decode(Decoder& d, gpudb::DeleteRecordsRequest& v)
112  {
113  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
114  {
115  const std::vector<size_t> fo = rd->fieldOrder();
116 
117  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
118  {
119  switch (*it)
120  {
121  case 0:
122  ::avro::decode(d, v.tableName);
123  break;
124 
125  case 1:
126  ::avro::decode(d, v.expressions);
127  break;
128 
129  case 2:
130  ::avro::decode(d, v.options);
131  break;
132 
133  default:
134  break;
135  }
136  }
137  }
138  else
139  {
140  ::avro::decode(d, v.tableName);
141  ::avro::decode(d, v.expressions);
142  ::avro::decode(d, v.options);
143  }
144  }
145  };
146 }
147 
148 namespace gpudb
149 {
150 
165  {
166 
172  countDeleted(int64_t()),
173  countsDeleted(std::vector<int64_t>()),
174  info(std::map<std::string, std::string>())
175  {
176  }
177 
178  int64_t countDeleted;
179  std::vector<int64_t> countsDeleted;
180  std::map<std::string, std::string> info;
181  };
182 }
183 
184 namespace avro
185 {
186  template<> struct codec_traits<gpudb::DeleteRecordsResponse>
187  {
188  static void encode(Encoder& e, const gpudb::DeleteRecordsResponse& v)
189  {
190  ::avro::encode(e, v.countDeleted);
191  ::avro::encode(e, v.countsDeleted);
192  ::avro::encode(e, v.info);
193  }
194 
195  static void decode(Decoder& d, gpudb::DeleteRecordsResponse& v)
196  {
197  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
198  {
199  const std::vector<size_t> fo = rd->fieldOrder();
200 
201  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
202  {
203  switch (*it)
204  {
205  case 0:
206  ::avro::decode(d, v.countDeleted);
207  break;
208 
209  case 1:
210  ::avro::decode(d, v.countsDeleted);
211  break;
212 
213  case 2:
214  ::avro::decode(d, v.info);
215  break;
216 
217  default:
218  break;
219  }
220  }
221  }
222  else
223  {
224  ::avro::decode(d, v.countDeleted);
225  ::avro::decode(d, v.countsDeleted);
226  ::avro::decode(d, v.info);
227  }
228  }
229  };
230 }
231 
232 #endif
A set of output parameters for const.
std::map< std::string, std::string > info
std::vector< int64_t > countsDeleted
std::map< std::string, std::string > options
DeleteRecordsRequest(const std::string &tableName_, const std::vector< std::string > &expressions_, const std::map< std::string, std::string > &options_)
Constructs a DeleteRecordsRequest object with the specified parameters.
A set of input parameters for const.
DeleteRecordsRequest()
Constructs a DeleteRecordsRequest object with default parameter values.
std::vector< std::string > expressions
DeleteRecordsResponse()
Constructs a DeleteRecordsResponse object with default parameter values.