GPUdb C++ API  Version 7.2.2.4
alter_table_metadata.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 __ALTER_TABLE_METADATA_H__
7 #define __ALTER_TABLE_METADATA_H__
8 
9 namespace gpudb
10 {
22  {
28  tableNames(std::vector<std::string>()),
29  metadataMap(std::map<std::string, std::string>()),
30  options(std::map<std::string, std::string>())
31  {
32  }
33 
55  AlterTableMetadataRequest(const std::vector<std::string>& tableNames_, const std::map<std::string, std::string>& metadataMap_, const std::map<std::string, std::string>& options_):
56  tableNames( tableNames_ ),
57  metadataMap( metadataMap_ ),
58  options( options_ )
59  {
60  }
61 
69  std::vector<std::string> tableNames;
70 
77  std::map<std::string, std::string> metadataMap;
78 
82  std::map<std::string, std::string> options;
83  };
84 } // end namespace gpudb
85 
86 namespace avro
87 {
88  template<> struct codec_traits<gpudb::AlterTableMetadataRequest>
89  {
90  static void encode(Encoder& e, const gpudb::AlterTableMetadataRequest& v)
91  {
92  ::avro::encode(e, v.tableNames);
93  ::avro::encode(e, v.metadataMap);
94  ::avro::encode(e, v.options);
95  }
96 
97  static void decode(Decoder& d, gpudb::AlterTableMetadataRequest& v)
98  {
99  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
100  {
101  const std::vector<size_t> fo = rd->fieldOrder();
102 
103  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
104  {
105  switch (*it)
106  {
107  case 0:
108  ::avro::decode(d, v.tableNames);
109  break;
110 
111  case 1:
112  ::avro::decode(d, v.metadataMap);
113  break;
114 
115  case 2:
116  ::avro::decode(d, v.options);
117  break;
118 
119  default:
120  break;
121  }
122  }
123  }
124  else
125  {
126  ::avro::decode(d, v.tableNames);
127  ::avro::decode(d, v.metadataMap);
128  ::avro::decode(d, v.options);
129  }
130  }
131  };
132 } // end namespace avro
133 
134 namespace gpudb
135 {
142  {
148  tableNames(std::vector<std::string>()),
149  metadataMap(std::map<std::string, std::string>()),
150  info(std::map<std::string, std::string>())
151  {
152  }
153 
158  std::vector<std::string> tableNames;
159 
164  std::map<std::string, std::string> metadataMap;
165 
169  std::map<std::string, std::string> info;
170  };
171 } // end namespace gpudb
172 
173 namespace avro
174 {
175  template<> struct codec_traits<gpudb::AlterTableMetadataResponse>
176  {
177  static void encode(Encoder& e, const gpudb::AlterTableMetadataResponse& v)
178  {
179  ::avro::encode(e, v.tableNames);
180  ::avro::encode(e, v.metadataMap);
181  ::avro::encode(e, v.info);
182  }
183 
184  static void decode(Decoder& d, gpudb::AlterTableMetadataResponse& v)
185  {
186  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
187  {
188  const std::vector<size_t> fo = rd->fieldOrder();
189 
190  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
191  {
192  switch (*it)
193  {
194  case 0:
195  ::avro::decode(d, v.tableNames);
196  break;
197 
198  case 1:
199  ::avro::decode(d, v.metadataMap);
200  break;
201 
202  case 2:
203  ::avro::decode(d, v.info);
204  break;
205 
206  default:
207  break;
208  }
209  }
210  }
211  else
212  {
213  ::avro::decode(d, v.tableNames);
214  ::avro::decode(d, v.metadataMap);
215  ::avro::decode(d, v.info);
216  }
217  }
218  };
219 } // end namespace avro
220 
221 #endif // __ALTER_TABLE_METADATA_H__
AlterTableMetadataRequest()
Constructs an AlterTableMetadataRequest object with default parameters.
std::map< std::string, std::string > metadataMap
Value of metadataMap.
A set of parameters for GPUdb::alterTableMetadata.
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 parameters.
A set of results returned by GPUdb::alterTableMetadata.
std::map< std::string, std::string > metadataMap
A map which contains the metadata of the tables that are to be updated.
std::map< std::string, std::string > options
Optional parameters.
std::vector< std::string > tableNames
Value of tableNames.
std::map< std::string, std::string > info
Additional information.
std::vector< std::string > tableNames
Names of the tables whose metadata will be updated, in [ schema_name. ]table_name format,...