GPUdb C++ API  Version 7.2.3.0
verify_backup.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 __VERIFY_BACKUP_H__
7 #define __VERIFY_BACKUP_H__
8 
9 namespace gpudb
10 {
27  {
32  backupName(std::string()),
33  datasourceName(std::string()),
34  options(std::map<std::string, std::string>())
35  {
36  }
37 
61  VerifyBackupRequest(const std::string& backupName_, const std::string& datasourceName_, const std::map<std::string, std::string>& options_):
62  backupName( backupName_ ),
63  datasourceName( datasourceName_ ),
64  options( options_ )
65  {
66  }
67 
73  std::string backupName;
74 
78  std::string datasourceName;
79 
91  std::map<std::string, std::string> options;
92  };
93 } // end namespace gpudb
94 
95 namespace avro
96 {
97  template<> struct codec_traits<gpudb::VerifyBackupRequest>
98  {
99  static void encode(Encoder& e, const gpudb::VerifyBackupRequest& v)
100  {
101  ::avro::encode(e, v.backupName);
102  ::avro::encode(e, v.datasourceName);
103  ::avro::encode(e, v.options);
104  }
105 
106  static void decode(Decoder& d, gpudb::VerifyBackupRequest& v)
107  {
108  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
109  {
110  const std::vector<size_t> fo = rd->fieldOrder();
111 
112  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
113  {
114  switch (*it)
115  {
116  case 0:
117  ::avro::decode(d, v.backupName);
118  break;
119 
120  case 1:
121  ::avro::decode(d, v.datasourceName);
122  break;
123 
124  case 2:
125  ::avro::decode(d, v.options);
126  break;
127 
128  default:
129  break;
130  }
131  }
132  }
133  else
134  {
135  ::avro::decode(d, v.backupName);
136  ::avro::decode(d, v.datasourceName);
137  ::avro::decode(d, v.options);
138  }
139  }
140  };
141 } // end namespace avro
142 
143 namespace gpudb
144 {
151  {
156  backupName(std::string()),
157  backupNames(std::vector<std::string>()),
158  backupIds(std::vector<std::vector<int64_t> >()),
159  errors(std::vector<std::vector<std::string> >()),
160  info(std::map<std::string, std::string>())
161  {
162  }
163 
167  std::string backupName;
168 
172  std::vector<std::string> backupNames;
173 
177  std::vector<std::vector<int64_t> > backupIds;
178 
182  std::vector<std::vector<std::string> > errors;
183 
187  std::map<std::string, std::string> info;
188  };
189 } // end namespace gpudb
190 
191 namespace avro
192 {
193  template<> struct codec_traits<gpudb::VerifyBackupResponse>
194  {
195  static void encode(Encoder& e, const gpudb::VerifyBackupResponse& v)
196  {
197  ::avro::encode(e, v.backupName);
198  ::avro::encode(e, v.backupNames);
199  ::avro::encode(e, v.backupIds);
200  ::avro::encode(e, v.errors);
201  ::avro::encode(e, v.info);
202  }
203 
204  static void decode(Decoder& d, gpudb::VerifyBackupResponse& v)
205  {
206  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
207  {
208  const std::vector<size_t> fo = rd->fieldOrder();
209 
210  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
211  {
212  switch (*it)
213  {
214  case 0:
215  ::avro::decode(d, v.backupName);
216  break;
217 
218  case 1:
219  ::avro::decode(d, v.backupNames);
220  break;
221 
222  case 2:
223  ::avro::decode(d, v.backupIds);
224  break;
225 
226  case 3:
227  ::avro::decode(d, v.errors);
228  break;
229 
230  case 4:
231  ::avro::decode(d, v.info);
232  break;
233 
234  default:
235  break;
236  }
237  }
238  }
239  else
240  {
241  ::avro::decode(d, v.backupName);
242  ::avro::decode(d, v.backupNames);
243  ::avro::decode(d, v.backupIds);
244  ::avro::decode(d, v.errors);
245  ::avro::decode(d, v.info);
246  }
247  }
248  };
249 } // end namespace avro
250 
251 #endif // __VERIFY_BACKUP_H__
VerifyBackupResponse()
Constructs a VerifyBackupResponse object with default parameters.
VerifyBackupRequest(const std::string &backupName_, const std::string &datasourceName_, const std::map< std::string, std::string > &options_)
Constructs a VerifyBackupRequest object with the specified parameters.
Definition: verify_backup.h:61
std::string backupName
Name of the backup.
Definition: verify_backup.h:73
std::map< std::string, std::string > options
Optional parameters.
Definition: verify_backup.h:91
std::vector< std::string > backupNames
Backup name(s).
A set of parameters for GPUdb::verifyBackup.
Definition: verify_backup.h:26
std::string backupName
Value of backupName.
std::vector< std::vector< std::string > > errors
Any errors detected from the inspection of each backup.
std::vector< std::vector< int64_t > > backupIds
IDs of individual snapshots per backup name.
VerifyBackupRequest()
Constructs a VerifyBackupRequest object with default parameters.
Definition: verify_backup.h:31
std::map< std::string, std::string > info
Additional information.
std::string datasourceName
Data source through which the backup is accessible.
Definition: verify_backup.h:78
A set of results returned by GPUdb::verifyBackup.