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