GPUdb C++ API  Version 7.1.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
alter_table_metadata.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 __ALTER_TABLE_METADATA_H__
7 #define __ALTER_TABLE_METADATA_H__
8 
9 namespace gpudb
10 {
11 
24  {
25 
31  tableNames(std::vector<std::string>()),
32  metadataMap(std::map<std::string, std::string>()),
33  options(std::map<std::string, std::string>())
34  {
35  }
36 
58  AlterTableMetadataRequest(const std::vector<std::string>& tableNames_, const std::map<std::string, std::string>& metadataMap_, const std::map<std::string, std::string>& options_):
59  tableNames( tableNames_ ),
60  metadataMap( metadataMap_ ),
61  options( options_ )
62  {
63  }
64 
65  std::vector<std::string> tableNames;
66  std::map<std::string, std::string> metadataMap;
67  std::map<std::string, std::string> options;
68  };
69 }
70 
71 namespace avro
72 {
73  template<> struct codec_traits<gpudb::AlterTableMetadataRequest>
74  {
75  static void encode(Encoder& e, const gpudb::AlterTableMetadataRequest& v)
76  {
77  ::avro::encode(e, v.tableNames);
78  ::avro::encode(e, v.metadataMap);
79  ::avro::encode(e, v.options);
80  }
81 
82  static void decode(Decoder& d, gpudb::AlterTableMetadataRequest& 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.tableNames);
94  break;
95 
96  case 1:
97  ::avro::decode(d, v.metadataMap);
98  break;
99 
100  case 2:
101  ::avro::decode(d, v.options);
102  break;
103 
104  default:
105  break;
106  }
107  }
108  }
109  else
110  {
111  ::avro::decode(d, v.tableNames);
112  ::avro::decode(d, v.metadataMap);
113  ::avro::decode(d, v.options);
114  }
115  }
116  };
117 }
118 
119 namespace gpudb
120 {
121 
134  {
135 
141  tableNames(std::vector<std::string>()),
142  metadataMap(std::map<std::string, std::string>()),
143  info(std::map<std::string, std::string>())
144  {
145  }
146 
147  std::vector<std::string> tableNames;
148  std::map<std::string, std::string> metadataMap;
149  std::map<std::string, std::string> info;
150  };
151 }
152 
153 namespace avro
154 {
155  template<> struct codec_traits<gpudb::AlterTableMetadataResponse>
156  {
157  static void encode(Encoder& e, const gpudb::AlterTableMetadataResponse& v)
158  {
159  ::avro::encode(e, v.tableNames);
160  ::avro::encode(e, v.metadataMap);
161  ::avro::encode(e, v.info);
162  }
163 
164  static void decode(Decoder& d, gpudb::AlterTableMetadataResponse& v)
165  {
166  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
167  {
168  const std::vector<size_t> fo = rd->fieldOrder();
169 
170  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
171  {
172  switch (*it)
173  {
174  case 0:
175  ::avro::decode(d, v.tableNames);
176  break;
177 
178  case 1:
179  ::avro::decode(d, v.metadataMap);
180  break;
181 
182  case 2:
183  ::avro::decode(d, v.info);
184  break;
185 
186  default:
187  break;
188  }
189  }
190  }
191  else
192  {
193  ::avro::decode(d, v.tableNames);
194  ::avro::decode(d, v.metadataMap);
195  ::avro::decode(d, v.info);
196  }
197  }
198  };
199 }
200 
201 #endif
AlterTableMetadataRequest()
Constructs an AlterTableMetadataRequest object with default parameter values.
std::map< std::string, std::string > metadataMap
A set of input parameters for const.
AlterTableMetadataRequest(const std::vector< std::string > &tableNames_, const std::map< std::string, std::string > &metadataMap_, const std::map< std::string, std::string > &options_)
Constructs an AlterTableMetadataRequest object with the specified parameters.
AlterTableMetadataResponse()
Constructs an AlterTableMetadataResponse object with default parameter values.
A set of output parameters for const.
std::map< std::string, std::string > metadataMap
std::map< std::string, std::string > options
std::vector< std::string > tableNames
std::map< std::string, std::string > info
std::vector< std::string > tableNames