GPUdb C++ API  Version 7.1.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
alter_table_monitor.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_MONITOR_H__
7 #define __ALTER_TABLE_MONITOR_H__
8 
9 namespace gpudb
10 {
11 
20  {
21 
27  topicId(std::string()),
28  monitorUpdatesMap(std::map<std::string, std::string>()),
29  options(std::map<std::string, std::string>())
30  {
31  }
32 
54  AlterTableMonitorRequest(const std::string& topicId_, const std::map<std::string, std::string>& monitorUpdatesMap_, const std::map<std::string, std::string>& options_):
55  topicId( topicId_ ),
56  monitorUpdatesMap( monitorUpdatesMap_ ),
57  options( options_ )
58  {
59  }
60 
61  std::string topicId;
62  std::map<std::string, std::string> monitorUpdatesMap;
63  std::map<std::string, std::string> options;
64  };
65 }
66 
67 namespace avro
68 {
69  template<> struct codec_traits<gpudb::AlterTableMonitorRequest>
70  {
71  static void encode(Encoder& e, const gpudb::AlterTableMonitorRequest& v)
72  {
73  ::avro::encode(e, v.topicId);
74  ::avro::encode(e, v.monitorUpdatesMap);
75  ::avro::encode(e, v.options);
76  }
77 
78  static void decode(Decoder& d, gpudb::AlterTableMonitorRequest& v)
79  {
80  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
81  {
82  const std::vector<size_t> fo = rd->fieldOrder();
83 
84  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
85  {
86  switch (*it)
87  {
88  case 0:
89  ::avro::decode(d, v.topicId);
90  break;
91 
92  case 1:
93  ::avro::decode(d, v.monitorUpdatesMap);
94  break;
95 
96  case 2:
97  ::avro::decode(d, v.options);
98  break;
99 
100  default:
101  break;
102  }
103  }
104  }
105  else
106  {
107  ::avro::decode(d, v.topicId);
108  ::avro::decode(d, v.monitorUpdatesMap);
109  ::avro::decode(d, v.options);
110  }
111  }
112  };
113 }
114 
115 namespace gpudb
116 {
117 
126  {
127 
133  topicId(std::string()),
134  info(std::map<std::string, std::string>())
135  {
136  }
137 
138  std::string topicId;
139  std::map<std::string, std::string> info;
140  };
141 }
142 
143 namespace avro
144 {
145  template<> struct codec_traits<gpudb::AlterTableMonitorResponse>
146  {
147  static void encode(Encoder& e, const gpudb::AlterTableMonitorResponse& v)
148  {
149  ::avro::encode(e, v.topicId);
150  ::avro::encode(e, v.info);
151  }
152 
153  static void decode(Decoder& d, gpudb::AlterTableMonitorResponse& v)
154  {
155  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
156  {
157  const std::vector<size_t> fo = rd->fieldOrder();
158 
159  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
160  {
161  switch (*it)
162  {
163  case 0:
164  ::avro::decode(d, v.topicId);
165  break;
166 
167  case 1:
168  ::avro::decode(d, v.info);
169  break;
170 
171  default:
172  break;
173  }
174  }
175  }
176  else
177  {
178  ::avro::decode(d, v.topicId);
179  ::avro::decode(d, v.info);
180  }
181  }
182  };
183 }
184 
185 #endif
std::map< std::string, std::string > options
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 parameter values.
A set of output parameters for const.
std::map< std::string, std::string > monitorUpdatesMap
std::map< std::string, std::string > info
A set of input parameters for const.
AlterTableMonitorRequest()
Constructs an AlterTableMonitorRequest object with default parameter values.