GPUdb C++ API  Version 5.2.0.0
show_system_status.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 __SHOW_SYSTEM_STATUS_H__
7 #define __SHOW_SYSTEM_STATUS_H__
8 
9 namespace gpudb
10 {
11 
21  {
22 
28  options(std::map<std::string, std::string>())
29  {
30  }
31 
40  ShowSystemStatusRequest(const std::map<std::string, std::string>& options):
41  options(options)
42  {
43  }
44 
45  std::map<std::string, std::string> options;
46  };
47 }
48 
49 namespace avro
50 {
51  template<> struct codec_traits<gpudb::ShowSystemStatusRequest>
52  {
53  static void encode(Encoder& e, const gpudb::ShowSystemStatusRequest& v)
54  {
55  ::avro::encode(e, v.options);
56  }
57 
58  static void decode(Decoder& d, gpudb::ShowSystemStatusRequest& v)
59  {
60  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
61  {
62  const std::vector<size_t> fo = rd->fieldOrder();
63 
64  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
65  {
66  switch (*it)
67  {
68  case 0:
69  ::avro::decode(d, v.options);
70  break;
71 
72  default:
73  break;
74  }
75  }
76  }
77  else
78  {
79  ::avro::decode(d, v.options);
80  }
81  }
82  };
83 }
84 
85 namespace gpudb
86 {
87 
97  {
98 
104  statusMap(std::map<std::string, std::string>())
105  {
106  }
107 
108  std::map<std::string, std::string> statusMap;
109  };
110 }
111 
112 namespace avro
113 {
114  template<> struct codec_traits<gpudb::ShowSystemStatusResponse>
115  {
116  static void encode(Encoder& e, const gpudb::ShowSystemStatusResponse& v)
117  {
118  ::avro::encode(e, v.statusMap);
119  }
120 
121  static void decode(Decoder& d, gpudb::ShowSystemStatusResponse& v)
122  {
123  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
124  {
125  const std::vector<size_t> fo = rd->fieldOrder();
126 
127  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
128  {
129  switch (*it)
130  {
131  case 0:
132  ::avro::decode(d, v.statusMap);
133  break;
134 
135  default:
136  break;
137  }
138  }
139  }
140  else
141  {
142  ::avro::decode(d, v.statusMap);
143  }
144  }
145  };
146 }
147 
148 #endif
A set of input parameters for showSystemStatus(const ShowSystemStatusRequest&) const.
std::map< std::string, std::string > options
ShowSystemStatusResponse()
Constructs a ShowSystemStatusResponse object with default parameter values.
ShowSystemStatusRequest(const std::map< std::string, std::string > &options)
Constructs a ShowSystemStatusRequest object with the specified parameters.
A set of output parameters for showSystemStatus(const ShowSystemStatusRequest&) const.
ShowSystemStatusRequest()
Constructs a ShowSystemStatusRequest object with default parameter values.
std::map< std::string, std::string > statusMap