GPUdb C++ API  Version 7.0.19.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
show_system_timing.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_TIMING_H__
7 #define __SHOW_SYSTEM_TIMING_H__
8 
9 namespace gpudb
10 {
11 
21  {
22 
28  options(std::map<std::string, std::string>())
29  {
30  }
31 
39  ShowSystemTimingRequest(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::ShowSystemTimingRequest>
51  {
52  static void encode(Encoder& e, const gpudb::ShowSystemTimingRequest& v)
53  {
54  ::avro::encode(e, v.options);
55  }
56 
57  static void decode(Decoder& d, gpudb::ShowSystemTimingRequest& 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  endpoints(std::vector<std::string>()),
104  timeInMs(std::vector<float>()),
105  jobids(std::vector<std::string>()),
106  info(std::map<std::string, std::string>())
107  {
108  }
109 
110  std::vector<std::string> endpoints;
111  std::vector<float> timeInMs;
112  std::vector<std::string> jobids;
113  std::map<std::string, std::string> info;
114  };
115 }
116 
117 namespace avro
118 {
119  template<> struct codec_traits<gpudb::ShowSystemTimingResponse>
120  {
121  static void encode(Encoder& e, const gpudb::ShowSystemTimingResponse& v)
122  {
123  ::avro::encode(e, v.endpoints);
124  ::avro::encode(e, v.timeInMs);
125  ::avro::encode(e, v.jobids);
126  ::avro::encode(e, v.info);
127  }
128 
129  static void decode(Decoder& d, gpudb::ShowSystemTimingResponse& 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.endpoints);
141  break;
142 
143  case 1:
144  ::avro::decode(d, v.timeInMs);
145  break;
146 
147  case 2:
148  ::avro::decode(d, v.jobids);
149  break;
150 
151  case 3:
152  ::avro::decode(d, v.info);
153  break;
154 
155  default:
156  break;
157  }
158  }
159  }
160  else
161  {
162  ::avro::decode(d, v.endpoints);
163  ::avro::decode(d, v.timeInMs);
164  ::avro::decode(d, v.jobids);
165  ::avro::decode(d, v.info);
166  }
167  }
168  };
169 }
170 
171 #endif
A set of input parameters for const.
std::map< std::string, std::string > options
ShowSystemTimingRequest()
Constructs a ShowSystemTimingRequest object with default parameter values.
std::vector< std::string > jobids
ShowSystemTimingResponse()
Constructs a ShowSystemTimingResponse object with default parameter values.
std::vector< std::string > endpoints
ShowSystemTimingRequest(const std::map< std::string, std::string > &options_)
Constructs a ShowSystemTimingRequest object with the specified parameters.
std::map< std::string, std::string > info
A set of output parameters for const.