GPUdb C++ API  Version 5.2.0.0
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 
40  ShowSystemTimingRequest(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::ShowSystemTimingRequest>
52  {
53  static void encode(Encoder& e, const gpudb::ShowSystemTimingRequest& v)
54  {
55  ::avro::encode(e, v.options);
56  }
57 
58  static void decode(Decoder& d, gpudb::ShowSystemTimingRequest& 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  endpoints(std::vector<std::string>()),
105  timeInMs(std::vector<float>()),
106  jobids(std::vector<std::string>())
107  {
108  }
109 
110  std::vector<std::string> endpoints;
111  std::vector<float> timeInMs;
112  std::vector<std::string> jobids;
113  };
114 }
115 
116 namespace avro
117 {
118  template<> struct codec_traits<gpudb::ShowSystemTimingResponse>
119  {
120  static void encode(Encoder& e, const gpudb::ShowSystemTimingResponse& v)
121  {
122  ::avro::encode(e, v.endpoints);
123  ::avro::encode(e, v.timeInMs);
124  ::avro::encode(e, v.jobids);
125  }
126 
127  static void decode(Decoder& d, gpudb::ShowSystemTimingResponse& v)
128  {
129  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
130  {
131  const std::vector<size_t> fo = rd->fieldOrder();
132 
133  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
134  {
135  switch (*it)
136  {
137  case 0:
138  ::avro::decode(d, v.endpoints);
139  break;
140 
141  case 1:
142  ::avro::decode(d, v.timeInMs);
143  break;
144 
145  case 2:
146  ::avro::decode(d, v.jobids);
147  break;
148 
149  default:
150  break;
151  }
152  }
153  }
154  else
155  {
156  ::avro::decode(d, v.endpoints);
157  ::avro::decode(d, v.timeInMs);
158  ::avro::decode(d, v.jobids);
159  }
160  }
161  };
162 }
163 
164 #endif
A set of input parameters for showSystemTiming(const ShowSystemTimingRequest&) 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
A set of output parameters for showSystemTiming(const ShowSystemTimingRequest&) const.
ShowSystemTimingRequest(const std::map< std::string, std::string > &options)
Constructs a ShowSystemTimingRequest object with the specified parameters.