GPUdb C++ API  Version 7.2.2.4
drop_datasink.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_DATASINK_H__
7 #define __DROP_DATASINK_H__
8 
9 namespace gpudb
10 {
26  {
31  name(std::string()),
32  options(std::map<std::string, std::string>())
33  {
34  }
35 
65  DropDatasinkRequest(const std::string& name_, const std::map<std::string, std::string>& options_):
66  name( name_ ),
67  options( options_ )
68  {
69  }
70 
74  std::string name;
75 
95  std::map<std::string, std::string> options;
96  };
97 } // end namespace gpudb
98 
99 namespace avro
100 {
101  template<> struct codec_traits<gpudb::DropDatasinkRequest>
102  {
103  static void encode(Encoder& e, const gpudb::DropDatasinkRequest& v)
104  {
105  ::avro::encode(e, v.name);
106  ::avro::encode(e, v.options);
107  }
108 
109  static void decode(Decoder& d, gpudb::DropDatasinkRequest& v)
110  {
111  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
112  {
113  const std::vector<size_t> fo = rd->fieldOrder();
114 
115  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
116  {
117  switch (*it)
118  {
119  case 0:
120  ::avro::decode(d, v.name);
121  break;
122 
123  case 1:
124  ::avro::decode(d, v.options);
125  break;
126 
127  default:
128  break;
129  }
130  }
131  }
132  else
133  {
134  ::avro::decode(d, v.name);
135  ::avro::decode(d, v.options);
136  }
137  }
138  };
139 } // end namespace avro
140 
141 namespace gpudb
142 {
149  {
154  name(std::string()),
155  info(std::map<std::string, std::string>())
156  {
157  }
158 
162  std::string name;
163 
167  std::map<std::string, std::string> info;
168  };
169 } // end namespace gpudb
170 
171 namespace avro
172 {
173  template<> struct codec_traits<gpudb::DropDatasinkResponse>
174  {
175  static void encode(Encoder& e, const gpudb::DropDatasinkResponse& v)
176  {
177  ::avro::encode(e, v.name);
178  ::avro::encode(e, v.info);
179  }
180 
181  static void decode(Decoder& d, gpudb::DropDatasinkResponse& v)
182  {
183  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
184  {
185  const std::vector<size_t> fo = rd->fieldOrder();
186 
187  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
188  {
189  switch (*it)
190  {
191  case 0:
192  ::avro::decode(d, v.name);
193  break;
194 
195  case 1:
196  ::avro::decode(d, v.info);
197  break;
198 
199  default:
200  break;
201  }
202  }
203  }
204  else
205  {
206  ::avro::decode(d, v.name);
207  ::avro::decode(d, v.info);
208  }
209  }
210  };
211 } // end namespace avro
212 
213 #endif // __DROP_DATASINK_H__
std::string name
Name of the data sink to be dropped.
Definition: drop_datasink.h:74
std::map< std::string, std::string > options
Optional parameters.
Definition: drop_datasink.h:95
std::string name
Value of name.
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:65
A set of results returned by GPUdb::dropDatasink.
A set of parameters for GPUdb::dropDatasink.
Definition: drop_datasink.h:25
std::map< std::string, std::string > info
Additional information.
DropDatasinkRequest()
Constructs a DropDatasinkRequest object with default parameters.
Definition: drop_datasink.h:30
DropDatasinkResponse()
Constructs a DropDatasinkResponse object with default parameters.