GPUdb C++ API  Version 7.2.3.0
drop_catalog.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_CATALOG_H__
7 #define __DROP_CATALOG_H__
8 
9 namespace gpudb
10 {
20  {
25  name(std::string()),
26  options(std::map<std::string, std::string>())
27  {
28  }
29 
39  DropCatalogRequest(const std::string& name_, const std::map<std::string, std::string>& options_):
40  name( name_ ),
41  options( options_ )
42  {
43  }
44 
48  std::string name;
49 
53  std::map<std::string, std::string> options;
54  };
55 } // end namespace gpudb
56 
57 namespace avro
58 {
59  template<> struct codec_traits<gpudb::DropCatalogRequest>
60  {
61  static void encode(Encoder& e, const gpudb::DropCatalogRequest& v)
62  {
63  ::avro::encode(e, v.name);
64  ::avro::encode(e, v.options);
65  }
66 
67  static void decode(Decoder& d, gpudb::DropCatalogRequest& v)
68  {
69  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
70  {
71  const std::vector<size_t> fo = rd->fieldOrder();
72 
73  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
74  {
75  switch (*it)
76  {
77  case 0:
78  ::avro::decode(d, v.name);
79  break;
80 
81  case 1:
82  ::avro::decode(d, v.options);
83  break;
84 
85  default:
86  break;
87  }
88  }
89  }
90  else
91  {
92  ::avro::decode(d, v.name);
93  ::avro::decode(d, v.options);
94  }
95  }
96  };
97 } // end namespace avro
98 
99 namespace gpudb
100 {
107  {
112  name(std::string()),
113  info(std::map<std::string, std::string>())
114  {
115  }
116 
120  std::string name;
121 
125  std::map<std::string, std::string> info;
126  };
127 } // end namespace gpudb
128 
129 namespace avro
130 {
131  template<> struct codec_traits<gpudb::DropCatalogResponse>
132  {
133  static void encode(Encoder& e, const gpudb::DropCatalogResponse& v)
134  {
135  ::avro::encode(e, v.name);
136  ::avro::encode(e, v.info);
137  }
138 
139  static void decode(Decoder& d, gpudb::DropCatalogResponse& v)
140  {
141  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
142  {
143  const std::vector<size_t> fo = rd->fieldOrder();
144 
145  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
146  {
147  switch (*it)
148  {
149  case 0:
150  ::avro::decode(d, v.name);
151  break;
152 
153  case 1:
154  ::avro::decode(d, v.info);
155  break;
156 
157  default:
158  break;
159  }
160  }
161  }
162  else
163  {
164  ::avro::decode(d, v.name);
165  ::avro::decode(d, v.info);
166  }
167  }
168  };
169 } // end namespace avro
170 
171 #endif // __DROP_CATALOG_H__
A set of parameters for GPUdb::dropCatalog.
Definition: drop_catalog.h:19
DropCatalogRequest(const std::string &name_, const std::map< std::string, std::string > &options_)
Constructs a DropCatalogRequest object with the specified parameters.
Definition: drop_catalog.h:39
DropCatalogRequest()
Constructs a DropCatalogRequest object with default parameters.
Definition: drop_catalog.h:24
std::string name
Name of the catalog to be dropped.
Definition: drop_catalog.h:48
std::map< std::string, std::string > info
Additional information.
Definition: drop_catalog.h:125
std::string name
Value of name.
Definition: drop_catalog.h:120
DropCatalogResponse()
Constructs a DropCatalogResponse object with default parameters.
Definition: drop_catalog.h:111
A set of results returned by GPUdb::dropCatalog.
Definition: drop_catalog.h:106
std::map< std::string, std::string > options
Optional parameters.
Definition: drop_catalog.h:53