GPUdb C++ API  Version 7.2.2.4
drop_schema.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 __DROP_SCHEMA_H__
7 #define __DROP_SCHEMA_H__
8 
9 namespace gpudb
10 {
19  {
24  schemaName(std::string()),
25  options(std::map<std::string, std::string>())
26  {
27  }
28 
77  DropSchemaRequest(const std::string& schemaName_, const std::map<std::string, std::string>& options_):
78  schemaName( schemaName_ ),
79  options( options_ )
80  {
81  }
82 
86  std::string schemaName;
87 
119  std::map<std::string, std::string> options;
120  };
121 } // end namespace gpudb
122 
123 namespace avro
124 {
125  template<> struct codec_traits<gpudb::DropSchemaRequest>
126  {
127  static void encode(Encoder& e, const gpudb::DropSchemaRequest& v)
128  {
129  ::avro::encode(e, v.schemaName);
130  ::avro::encode(e, v.options);
131  }
132 
133  static void decode(Decoder& d, gpudb::DropSchemaRequest& v)
134  {
135  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
136  {
137  const std::vector<size_t> fo = rd->fieldOrder();
138 
139  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
140  {
141  switch (*it)
142  {
143  case 0:
144  ::avro::decode(d, v.schemaName);
145  break;
146 
147  case 1:
148  ::avro::decode(d, v.options);
149  break;
150 
151  default:
152  break;
153  }
154  }
155  }
156  else
157  {
158  ::avro::decode(d, v.schemaName);
159  ::avro::decode(d, v.options);
160  }
161  }
162  };
163 } // end namespace avro
164 
165 namespace gpudb
166 {
172  {
177  schemaName(std::string()),
178  info(std::map<std::string, std::string>())
179  {
180  }
181 
185  std::string schemaName;
186 
190  std::map<std::string, std::string> info;
191  };
192 } // end namespace gpudb
193 
194 namespace avro
195 {
196  template<> struct codec_traits<gpudb::DropSchemaResponse>
197  {
198  static void encode(Encoder& e, const gpudb::DropSchemaResponse& v)
199  {
200  ::avro::encode(e, v.schemaName);
201  ::avro::encode(e, v.info);
202  }
203 
204  static void decode(Decoder& d, gpudb::DropSchemaResponse& 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.schemaName);
216  break;
217 
218  case 1:
219  ::avro::decode(d, v.info);
220  break;
221 
222  default:
223  break;
224  }
225  }
226  }
227  else
228  {
229  ::avro::decode(d, v.schemaName);
230  ::avro::decode(d, v.info);
231  }
232  }
233  };
234 } // end namespace avro
235 
236 #endif // __DROP_SCHEMA_H__
std::map< std::string, std::string > options
Optional parameters.
Definition: drop_schema.h:119
std::string schemaName
Name of the schema to be dropped.
Definition: drop_schema.h:86
DropSchemaResponse()
Constructs a DropSchemaResponse object with default parameters.
Definition: drop_schema.h:176
A set of parameters for GPUdb::dropSchema.
Definition: drop_schema.h:18
A set of results returned by GPUdb::dropSchema.
Definition: drop_schema.h:171
std::string schemaName
Value of schemaName.
Definition: drop_schema.h:185
DropSchemaRequest()
Constructs a DropSchemaRequest object with default parameters.
Definition: drop_schema.h:23
std::map< std::string, std::string > info
Additional information.
Definition: drop_schema.h:190
DropSchemaRequest(const std::string &schemaName_, const std::map< std::string, std::string > &options_)
Constructs a DropSchemaRequest object with the specified parameters.
Definition: drop_schema.h:77