GPUdb C++ API  Version 7.2.2.4
alter_table_monitor.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_MONITOR_H__
7 #define __ALTER_TABLE_MONITOR_H__
8 
9 namespace gpudb
10 {
21  {
27  topicId(std::string()),
28  monitorUpdatesMap(std::map<std::string, std::string>()),
29  options(std::map<std::string, std::string>())
30  {
31  }
32 
60  AlterTableMonitorRequest(const std::string& topicId_, const std::map<std::string, std::string>& monitorUpdatesMap_, const std::map<std::string, std::string>& options_):
61  topicId( topicId_ ),
62  monitorUpdatesMap( monitorUpdatesMap_ ),
63  options( options_ )
64  {
65  }
66 
72  std::string topicId;
73 
86  std::map<std::string, std::string> monitorUpdatesMap;
87 
91  std::map<std::string, std::string> options;
92  };
93 } // end namespace gpudb
94 
95 namespace avro
96 {
97  template<> struct codec_traits<gpudb::AlterTableMonitorRequest>
98  {
99  static void encode(Encoder& e, const gpudb::AlterTableMonitorRequest& v)
100  {
101  ::avro::encode(e, v.topicId);
102  ::avro::encode(e, v.monitorUpdatesMap);
103  ::avro::encode(e, v.options);
104  }
105 
106  static void decode(Decoder& d, gpudb::AlterTableMonitorRequest& v)
107  {
108  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
109  {
110  const std::vector<size_t> fo = rd->fieldOrder();
111 
112  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
113  {
114  switch (*it)
115  {
116  case 0:
117  ::avro::decode(d, v.topicId);
118  break;
119 
120  case 1:
121  ::avro::decode(d, v.monitorUpdatesMap);
122  break;
123 
124  case 2:
125  ::avro::decode(d, v.options);
126  break;
127 
128  default:
129  break;
130  }
131  }
132  }
133  else
134  {
135  ::avro::decode(d, v.topicId);
136  ::avro::decode(d, v.monitorUpdatesMap);
137  ::avro::decode(d, v.options);
138  }
139  }
140  };
141 } // end namespace avro
142 
143 namespace gpudb
144 {
151  {
157  topicId(std::string()),
158  info(std::map<std::string, std::string>())
159  {
160  }
161 
165  std::string topicId;
166 
170  std::map<std::string, std::string> info;
171  };
172 } // end namespace gpudb
173 
174 namespace avro
175 {
176  template<> struct codec_traits<gpudb::AlterTableMonitorResponse>
177  {
178  static void encode(Encoder& e, const gpudb::AlterTableMonitorResponse& v)
179  {
180  ::avro::encode(e, v.topicId);
181  ::avro::encode(e, v.info);
182  }
183 
184  static void decode(Decoder& d, gpudb::AlterTableMonitorResponse& 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.topicId);
196  break;
197 
198  case 1:
199  ::avro::decode(d, v.info);
200  break;
201 
202  default:
203  break;
204  }
205  }
206  }
207  else
208  {
209  ::avro::decode(d, v.topicId);
210  ::avro::decode(d, v.info);
211  }
212  }
213  };
214 } // end namespace avro
215 
216 #endif // __ALTER_TABLE_MONITOR_H__
std::map< std::string, std::string > options
Optional parameters.
AlterTableMonitorRequest(const std::string &topicId_, const std::map< std::string, std::string > &monitorUpdatesMap_, const std::map< std::string, std::string > &options_)
Constructs an AlterTableMonitorRequest object with the specified parameters.
AlterTableMonitorResponse()
Constructs an AlterTableMonitorResponse object with default parameters.
A set of results returned by GPUdb::alterTableMonitor.
std::map< std::string, std::string > monitorUpdatesMap
Map containing the properties of the table monitor to be updated.
std::map< std::string, std::string > info
Additional information.
A set of parameters for GPUdb::alterTableMonitor.
std::string topicId
Value of topicId.
AlterTableMonitorRequest()
Constructs an AlterTableMonitorRequest object with default parameters.
std::string topicId
The topic ID returned by GPUdb::createTableMonitor.