GPUdb C++ API  Version 7.0.19.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 
83  DeleteRecordsRequest(const std::string& tableName_, const std::vector<std::string>& expressions_, const std::map<std::string, std::string>& options_):
84  tableName( tableName_ ),
85  expressions( expressions_ ),
86  options( options_ )
87  {
88  }
89 
90  std::string tableName;
91  std::vector<std::string> expressions;
92  std::map<std::string, std::string> options;
93  };
94 }
95 
96 namespace avro
97 {
98  template<> struct codec_traits<gpudb::DeleteRecordsRequest>
99  {
100  static void encode(Encoder& e, const gpudb::DeleteRecordsRequest& v)
101  {
102  ::avro::encode(e, v.tableName);
103  ::avro::encode(e, v.expressions);
104  ::avro::encode(e, v.options);
105  }
106 
107  static void decode(Decoder& d, gpudb::DeleteRecordsRequest& v)
108  {
109  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
110  {
111  const std::vector<size_t> fo = rd->fieldOrder();
112 
113  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
114  {
115  switch (*it)
116  {
117  case 0:
118  ::avro::decode(d, v.tableName);
119  break;
120 
121  case 1:
122  ::avro::decode(d, v.expressions);
123  break;
124 
125  case 2:
126  ::avro::decode(d, v.options);
127  break;
128 
129  default:
130  break;
131  }
132  }
133  }
134  else
135  {
136  ::avro::decode(d, v.tableName);
137  ::avro::decode(d, v.expressions);
138  ::avro::decode(d, v.options);
139  }
140  }
141  };
142 }
143 
144 namespace gpudb
145 {
146 
161  {
162 
168  countDeleted(int64_t()),
169  countsDeleted(std::vector<int64_t>()),
170  info(std::map<std::string, std::string>())
171  {
172  }
173 
174  int64_t countDeleted;
175  std::vector<int64_t> countsDeleted;
176  std::map<std::string, std::string> info;
177  };
178 }
179 
180 namespace avro
181 {
182  template<> struct codec_traits<gpudb::DeleteRecordsResponse>
183  {
184  static void encode(Encoder& e, const gpudb::DeleteRecordsResponse& v)
185  {
186  ::avro::encode(e, v.countDeleted);
187  ::avro::encode(e, v.countsDeleted);
188  ::avro::encode(e, v.info);
189  }
190 
191  static void decode(Decoder& d, gpudb::DeleteRecordsResponse& v)
192  {
193  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
194  {
195  const std::vector<size_t> fo = rd->fieldOrder();
196 
197  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
198  {
199  switch (*it)
200  {
201  case 0:
202  ::avro::decode(d, v.countDeleted);
203  break;
204 
205  case 1:
206  ::avro::decode(d, v.countsDeleted);
207  break;
208 
209  case 2:
210  ::avro::decode(d, v.info);
211  break;
212 
213  default:
214  break;
215  }
216  }
217  }
218  else
219  {
220  ::avro::decode(d, v.countDeleted);
221  ::avro::decode(d, v.countsDeleted);
222  ::avro::decode(d, v.info);
223  }
224  }
225  };
226 }
227 
228 #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.