GPUdb C++ API  Version 7.1.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
drop_credential.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 __DROP_CREDENTIAL_H__
7 #define __DROP_CREDENTIAL_H__
8 
9 namespace gpudb
10 {
11 
20  {
21 
27  credentialName(std::string()),
28  options(std::map<std::string, std::string>())
29  {
30  }
31 
41  DropCredentialRequest(const std::string& credentialName_, const std::map<std::string, std::string>& options_):
42  credentialName( credentialName_ ),
43  options( options_ )
44  {
45  }
46 
47  std::string credentialName;
48  std::map<std::string, std::string> options;
49  };
50 }
51 
52 namespace avro
53 {
54  template<> struct codec_traits<gpudb::DropCredentialRequest>
55  {
56  static void encode(Encoder& e, const gpudb::DropCredentialRequest& v)
57  {
58  ::avro::encode(e, v.credentialName);
59  ::avro::encode(e, v.options);
60  }
61 
62  static void decode(Decoder& d, gpudb::DropCredentialRequest& v)
63  {
64  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
65  {
66  const std::vector<size_t> fo = rd->fieldOrder();
67 
68  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
69  {
70  switch (*it)
71  {
72  case 0:
73  ::avro::decode(d, v.credentialName);
74  break;
75 
76  case 1:
77  ::avro::decode(d, v.options);
78  break;
79 
80  default:
81  break;
82  }
83  }
84  }
85  else
86  {
87  ::avro::decode(d, v.credentialName);
88  ::avro::decode(d, v.options);
89  }
90  }
91  };
92 }
93 
94 namespace gpudb
95 {
96 
105  {
106 
112  credentialName(std::string()),
113  info(std::map<std::string, std::string>())
114  {
115  }
116 
117  std::string credentialName;
118  std::map<std::string, std::string> info;
119  };
120 }
121 
122 namespace avro
123 {
124  template<> struct codec_traits<gpudb::DropCredentialResponse>
125  {
126  static void encode(Encoder& e, const gpudb::DropCredentialResponse& v)
127  {
128  ::avro::encode(e, v.credentialName);
129  ::avro::encode(e, v.info);
130  }
131 
132  static void decode(Decoder& d, gpudb::DropCredentialResponse& v)
133  {
134  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
135  {
136  const std::vector<size_t> fo = rd->fieldOrder();
137 
138  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
139  {
140  switch (*it)
141  {
142  case 0:
143  ::avro::decode(d, v.credentialName);
144  break;
145 
146  case 1:
147  ::avro::decode(d, v.info);
148  break;
149 
150  default:
151  break;
152  }
153  }
154  }
155  else
156  {
157  ::avro::decode(d, v.credentialName);
158  ::avro::decode(d, v.info);
159  }
160  }
161  };
162 }
163 
164 #endif
std::map< std::string, std::string > options
A set of output parameters for const.
DropCredentialRequest(const std::string &credentialName_, const std::map< std::string, std::string > &options_)
Constructs a DropCredentialRequest object with the specified parameters.
A set of input parameters for const.
DropCredentialResponse()
Constructs a DropCredentialResponse object with default parameter values.
DropCredentialRequest()
Constructs a DropCredentialRequest object with default parameter values.
std::map< std::string, std::string > info