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