GPUdb C++ API  Version 5.2.0.0
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 
41  ClearTableMonitorRequest(const std::string& topicId, const std::map<std::string, std::string>& options):
42  topicId(topicId),
43  options(options)
44  {
45  }
46 
47  std::string topicId;
48  std::map<std::string, std::string> options;
49  };
50 }
51 
52 namespace avro
53 {
54  template<> struct codec_traits<gpudb::ClearTableMonitorRequest>
55  {
56  static void encode(Encoder& e, const gpudb::ClearTableMonitorRequest& v)
57  {
58  ::avro::encode(e, v.topicId);
59  ::avro::encode(e, v.options);
60  }
61 
62  static void decode(Decoder& d, gpudb::ClearTableMonitorRequest& v)
63  {
64  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
65  {
66  const std::vector<size_t> fo = rd->fieldOrder();
67 
68  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
69  {
70  switch (*it)
71  {
72  case 0:
73  ::avro::decode(d, v.topicId);
74  break;
75 
76  case 1:
77  ::avro::decode(d, v.options);
78  break;
79 
80  default:
81  break;
82  }
83  }
84  }
85  else
86  {
87  ::avro::decode(d, v.topicId);
88  ::avro::decode(d, v.options);
89  }
90  }
91  };
92 }
93 
94 namespace gpudb
95 {
96 
105  {
106 
112  topicId(std::string())
113  {
114  }
115 
116  std::string topicId;
117  };
118 }
119 
120 namespace avro
121 {
122  template<> struct codec_traits<gpudb::ClearTableMonitorResponse>
123  {
124  static void encode(Encoder& e, const gpudb::ClearTableMonitorResponse& v)
125  {
126  ::avro::encode(e, v.topicId);
127  }
128 
129  static void decode(Decoder& d, gpudb::ClearTableMonitorResponse& v)
130  {
131  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
132  {
133  const std::vector<size_t> fo = rd->fieldOrder();
134 
135  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
136  {
137  switch (*it)
138  {
139  case 0:
140  ::avro::decode(d, v.topicId);
141  break;
142 
143  default:
144  break;
145  }
146  }
147  }
148  else
149  {
150  ::avro::decode(d, v.topicId);
151  }
152  }
153  };
154 }
155 
156 #endif
std::map< std::string, std::string > options
ClearTableMonitorRequest(const std::string &topicId, const std::map< std::string, std::string > &options)
Constructs a ClearTableMonitorRequest object with the specified parameters.
A set of output parameters for clearTableMonitor(const ClearTableMonitorRequest&) const...
ClearTableMonitorRequest()
Constructs a ClearTableMonitorRequest object with default parameter values.
A set of input parameters for clearTableMonitor(const ClearTableMonitorRequest&) const.
ClearTableMonitorResponse()
Constructs a ClearTableMonitorResponse object with default parameter values.