GPUdb C++ API  Version 5.2.0.0
admin_verify_db.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 __ADMIN_VERIFY_DB_H__
7 #define __ADMIN_VERIFY_DB_H__
8 
9 namespace gpudb
10 {
11 
21  {
22 
28  options(std::map<std::string, std::string>())
29  {
30  }
31 
40  AdminVerifyDbRequest(const std::map<std::string, std::string>& options):
41  options(options)
42  {
43  }
44 
45  std::map<std::string, std::string> options;
46  };
47 }
48 
49 namespace avro
50 {
51  template<> struct codec_traits<gpudb::AdminVerifyDbRequest>
52  {
53  static void encode(Encoder& e, const gpudb::AdminVerifyDbRequest& v)
54  {
55  ::avro::encode(e, v.options);
56  }
57 
58  static void decode(Decoder& d, gpudb::AdminVerifyDbRequest& v)
59  {
60  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
61  {
62  const std::vector<size_t> fo = rd->fieldOrder();
63 
64  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
65  {
66  switch (*it)
67  {
68  case 0:
69  ::avro::decode(d, v.options);
70  break;
71 
72  default:
73  break;
74  }
75  }
76  }
77  else
78  {
79  ::avro::decode(d, v.options);
80  }
81  }
82  };
83 }
84 
85 namespace gpudb
86 {
87 
97  {
98 
104  verifiedOk(bool()),
105  errorList(std::vector<std::string>())
106  {
107  }
108 
110  std::vector<std::string> errorList;
111  };
112 }
113 
114 namespace avro
115 {
116  template<> struct codec_traits<gpudb::AdminVerifyDbResponse>
117  {
118  static void encode(Encoder& e, const gpudb::AdminVerifyDbResponse& v)
119  {
120  ::avro::encode(e, v.verifiedOk);
121  ::avro::encode(e, v.errorList);
122  }
123 
124  static void decode(Decoder& d, gpudb::AdminVerifyDbResponse& v)
125  {
126  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
127  {
128  const std::vector<size_t> fo = rd->fieldOrder();
129 
130  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
131  {
132  switch (*it)
133  {
134  case 0:
135  ::avro::decode(d, v.verifiedOk);
136  break;
137 
138  case 1:
139  ::avro::decode(d, v.errorList);
140  break;
141 
142  default:
143  break;
144  }
145  }
146  }
147  else
148  {
149  ::avro::decode(d, v.verifiedOk);
150  ::avro::decode(d, v.errorList);
151  }
152  }
153  };
154 }
155 
156 #endif
AdminVerifyDbRequest(const std::map< std::string, std::string > &options)
Constructs an AdminVerifyDbRequest object with the specified parameters.
A set of output parameters for adminVerifyDb(const AdminVerifyDbRequest&) const.
AdminVerifyDbResponse()
Constructs an AdminVerifyDbResponse object with default parameter values.
A set of input parameters for adminVerifyDb(const AdminVerifyDbRequest&) const.
std::vector< std::string > errorList
std::map< std::string, std::string > options
AdminVerifyDbRequest()
Constructs an AdminVerifyDbRequest object with default parameter values.