GPUdb C++ API  Version 7.1.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
delete_files.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_FILES_H__
7 #define __DELETE_FILES_H__
8 
9 namespace gpudb
10 {
11 
20  {
21 
27  fileNames(std::vector<std::string>()),
28  options(std::map<std::string, std::string>())
29  {
30  }
31 
57  DeleteFilesRequest(const std::vector<std::string>& fileNames_, const std::map<std::string, std::string>& options_):
58  fileNames( fileNames_ ),
59  options( options_ )
60  {
61  }
62 
63  std::vector<std::string> fileNames;
64  std::map<std::string, std::string> options;
65  };
66 }
67 
68 namespace avro
69 {
70  template<> struct codec_traits<gpudb::DeleteFilesRequest>
71  {
72  static void encode(Encoder& e, const gpudb::DeleteFilesRequest& v)
73  {
74  ::avro::encode(e, v.fileNames);
75  ::avro::encode(e, v.options);
76  }
77 
78  static void decode(Decoder& d, gpudb::DeleteFilesRequest& v)
79  {
80  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
81  {
82  const std::vector<size_t> fo = rd->fieldOrder();
83 
84  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
85  {
86  switch (*it)
87  {
88  case 0:
89  ::avro::decode(d, v.fileNames);
90  break;
91 
92  case 1:
93  ::avro::decode(d, v.options);
94  break;
95 
96  default:
97  break;
98  }
99  }
100  }
101  else
102  {
103  ::avro::decode(d, v.fileNames);
104  ::avro::decode(d, v.options);
105  }
106  }
107  };
108 }
109 
110 namespace gpudb
111 {
112 
121  {
122 
128  fileNames(std::vector<std::string>()),
129  info(std::map<std::string, std::string>())
130  {
131  }
132 
133  std::vector<std::string> fileNames;
134  std::map<std::string, std::string> info;
135  };
136 }
137 
138 namespace avro
139 {
140  template<> struct codec_traits<gpudb::DeleteFilesResponse>
141  {
142  static void encode(Encoder& e, const gpudb::DeleteFilesResponse& v)
143  {
144  ::avro::encode(e, v.fileNames);
145  ::avro::encode(e, v.info);
146  }
147 
148  static void decode(Decoder& d, gpudb::DeleteFilesResponse& v)
149  {
150  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
151  {
152  const std::vector<size_t> fo = rd->fieldOrder();
153 
154  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
155  {
156  switch (*it)
157  {
158  case 0:
159  ::avro::decode(d, v.fileNames);
160  break;
161 
162  case 1:
163  ::avro::decode(d, v.info);
164  break;
165 
166  default:
167  break;
168  }
169  }
170  }
171  else
172  {
173  ::avro::decode(d, v.fileNames);
174  ::avro::decode(d, v.info);
175  }
176  }
177  };
178 }
179 
180 #endif
std::vector< std::string > fileNames
Definition: delete_files.h:133
A set of input parameters for const.
Definition: delete_files.h:19
DeleteFilesRequest()
Constructs a DeleteFilesRequest object with default parameter values.
Definition: delete_files.h:26
DeleteFilesResponse()
Constructs a DeleteFilesResponse object with default parameter values.
Definition: delete_files.h:127
std::map< std::string, std::string > info
Definition: delete_files.h:134
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:57
std::vector< std::string > fileNames
Definition: delete_files.h:63
A set of output parameters for const.
Definition: delete_files.h:120
std::map< std::string, std::string > options
Definition: delete_files.h:64