GPUdb C++ API  Version 7.2.2.4
delete_files.h
Go to the documentation of this file.
1 /*
2  * This file was autogenerated by the Kinetica schema processor.
3  *
4  * DO NOT EDIT DIRECTLY.
5  */
6 #ifndef __DELETE_FILES_H__
7 #define __DELETE_FILES_H__
8 
9 namespace gpudb
10 {
20  {
25  fileNames(std::vector<std::string>()),
26  options(std::map<std::string, std::string>())
27  {
28  }
29 
62  DeleteFilesRequest(const std::vector<std::string>& fileNames_, const std::map<std::string, std::string>& options_):
63  fileNames( fileNames_ ),
64  options( options_ )
65  {
66  }
67 
76  std::vector<std::string> fileNames;
77 
95  std::map<std::string, std::string> options;
96  };
97 } // end namespace gpudb
98 
99 namespace avro
100 {
101  template<> struct codec_traits<gpudb::DeleteFilesRequest>
102  {
103  static void encode(Encoder& e, const gpudb::DeleteFilesRequest& v)
104  {
105  ::avro::encode(e, v.fileNames);
106  ::avro::encode(e, v.options);
107  }
108 
109  static void decode(Decoder& d, gpudb::DeleteFilesRequest& v)
110  {
111  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
112  {
113  const std::vector<size_t> fo = rd->fieldOrder();
114 
115  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
116  {
117  switch (*it)
118  {
119  case 0:
120  ::avro::decode(d, v.fileNames);
121  break;
122 
123  case 1:
124  ::avro::decode(d, v.options);
125  break;
126 
127  default:
128  break;
129  }
130  }
131  }
132  else
133  {
134  ::avro::decode(d, v.fileNames);
135  ::avro::decode(d, v.options);
136  }
137  }
138  };
139 } // end namespace avro
140 
141 namespace gpudb
142 {
149  {
154  fileNames(std::vector<std::string>()),
155  info(std::map<std::string, std::string>())
156  {
157  }
158 
162  std::vector<std::string> fileNames;
163 
167  std::map<std::string, std::string> info;
168  };
169 } // end namespace gpudb
170 
171 namespace avro
172 {
173  template<> struct codec_traits<gpudb::DeleteFilesResponse>
174  {
175  static void encode(Encoder& e, const gpudb::DeleteFilesResponse& v)
176  {
177  ::avro::encode(e, v.fileNames);
178  ::avro::encode(e, v.info);
179  }
180 
181  static void decode(Decoder& d, gpudb::DeleteFilesResponse& v)
182  {
183  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
184  {
185  const std::vector<size_t> fo = rd->fieldOrder();
186 
187  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
188  {
189  switch (*it)
190  {
191  case 0:
192  ::avro::decode(d, v.fileNames);
193  break;
194 
195  case 1:
196  ::avro::decode(d, v.info);
197  break;
198 
199  default:
200  break;
201  }
202  }
203  }
204  else
205  {
206  ::avro::decode(d, v.fileNames);
207  ::avro::decode(d, v.info);
208  }
209  }
210  };
211 } // end namespace avro
212 
213 #endif // __DELETE_FILES_H__
std::vector< std::string > fileNames
Names of the files deleted from KiFS.
Definition: delete_files.h:162
A set of parameters for GPUdb::deleteFiles.
Definition: delete_files.h:19
DeleteFilesRequest()
Constructs a DeleteFilesRequest object with default parameters.
Definition: delete_files.h:24
DeleteFilesResponse()
Constructs a DeleteFilesResponse object with default parameters.
Definition: delete_files.h:153
std::map< std::string, std::string > info
Additional information.
Definition: delete_files.h:167
DeleteFilesRequest(const std::vector< std::string > &fileNames_, const std::map< std::string, std::string > &options_)
Constructs a DeleteFilesRequest object with the specified parameters.
Definition: delete_files.h:62
std::vector< std::string > fileNames
An array of names of files to be deleted.
Definition: delete_files.h:76
A set of results returned by GPUdb::deleteFiles.
Definition: delete_files.h:148
std::map< std::string, std::string > options
Optional parameters.
Definition: delete_files.h:95