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