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