GPUdb C++ API  Version 5.2.0.0
create_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 __CREATE_TABLE_MONITOR_H__
7 #define __CREATE_TABLE_MONITOR_H__
8 
9 namespace gpudb
10 {
11 
28  {
29 
35  tableName(std::string()),
36  options(std::map<std::string, std::string>())
37  {
38  }
39 
50  CreateTableMonitorRequest(const std::string& tableName, const std::map<std::string, std::string>& options):
51  tableName(tableName),
52  options(options)
53  {
54  }
55 
56  std::string tableName;
57  std::map<std::string, std::string> options;
58  };
59 }
60 
61 namespace avro
62 {
63  template<> struct codec_traits<gpudb::CreateTableMonitorRequest>
64  {
65  static void encode(Encoder& e, const gpudb::CreateTableMonitorRequest& v)
66  {
67  ::avro::encode(e, v.tableName);
68  ::avro::encode(e, v.options);
69  }
70 
71  static void decode(Decoder& d, gpudb::CreateTableMonitorRequest& v)
72  {
73  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
74  {
75  const std::vector<size_t> fo = rd->fieldOrder();
76 
77  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
78  {
79  switch (*it)
80  {
81  case 0:
82  ::avro::decode(d, v.tableName);
83  break;
84 
85  case 1:
86  ::avro::decode(d, v.options);
87  break;
88 
89  default:
90  break;
91  }
92  }
93  }
94  else
95  {
96  ::avro::decode(d, v.tableName);
97  ::avro::decode(d, v.options);
98  }
99  }
100  };
101 }
102 
103 namespace gpudb
104 {
105 
122  {
123 
129  topicId(std::string()),
130  tableName(std::string()),
131  typeSchema(std::string())
132  {
133  }
134 
135  std::string topicId;
136  std::string tableName;
137  std::string typeSchema;
138  };
139 }
140 
141 namespace avro
142 {
143  template<> struct codec_traits<gpudb::CreateTableMonitorResponse>
144  {
145  static void encode(Encoder& e, const gpudb::CreateTableMonitorResponse& v)
146  {
147  ::avro::encode(e, v.topicId);
148  ::avro::encode(e, v.tableName);
149  ::avro::encode(e, v.typeSchema);
150  }
151 
152  static void decode(Decoder& d, gpudb::CreateTableMonitorResponse& v)
153  {
154  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
155  {
156  const std::vector<size_t> fo = rd->fieldOrder();
157 
158  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
159  {
160  switch (*it)
161  {
162  case 0:
163  ::avro::decode(d, v.topicId);
164  break;
165 
166  case 1:
167  ::avro::decode(d, v.tableName);
168  break;
169 
170  case 2:
171  ::avro::decode(d, v.typeSchema);
172  break;
173 
174  default:
175  break;
176  }
177  }
178  }
179  else
180  {
181  ::avro::decode(d, v.topicId);
182  ::avro::decode(d, v.tableName);
183  ::avro::decode(d, v.typeSchema);
184  }
185  }
186  };
187 }
188 
189 #endif
std::map< std::string, std::string > options
A set of output parameters for createTableMonitor(const CreateTableMonitorRequest&) const...
CreateTableMonitorRequest(const std::string &tableName, const std::map< std::string, std::string > &options)
Constructs a CreateTableMonitorRequest object with the specified parameters.
CreateTableMonitorResponse()
Constructs a CreateTableMonitorResponse object with default parameter values.
A set of input parameters for createTableMonitor(const CreateTableMonitorRequest&) const...
CreateTableMonitorRequest()
Constructs a CreateTableMonitorRequest object with default parameter values.