GPUdb C++ API  Version 7.2.2.4
show_system_timing.h
Go to the documentation of this file.
1 /*
2  * This file was autogenerated by the Kinetica 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 {
21  {
26  options(std::map<std::string, std::string>())
27  {
28  }
29 
37  ShowSystemTimingRequest(const std::map<std::string, std::string>& options_):
38  options( options_ )
39  {
40  }
41 
46  std::map<std::string, std::string> options;
47  };
48 } // end namespace gpudb
49 
50 namespace avro
51 {
52  template<> struct codec_traits<gpudb::ShowSystemTimingRequest>
53  {
54  static void encode(Encoder& e, const gpudb::ShowSystemTimingRequest& v)
55  {
56  ::avro::encode(e, v.options);
57  }
58 
59  static void decode(Decoder& d, gpudb::ShowSystemTimingRequest& v)
60  {
61  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
62  {
63  const std::vector<size_t> fo = rd->fieldOrder();
64 
65  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
66  {
67  switch (*it)
68  {
69  case 0:
70  ::avro::decode(d, v.options);
71  break;
72 
73  default:
74  break;
75  }
76  }
77  }
78  else
79  {
80  ::avro::decode(d, v.options);
81  }
82  }
83  };
84 } // end namespace avro
85 
86 namespace gpudb
87 {
94  {
100  endpoints(std::vector<std::string>()),
101  timeInMs(std::vector<float>()),
102  jobids(std::vector<std::string>()),
103  info(std::map<std::string, std::string>())
104  {
105  }
106 
110  std::vector<std::string> endpoints;
111 
115  std::vector<float> timeInMs;
116 
120  std::vector<std::string> jobids;
121 
125  std::map<std::string, std::string> info;
126  };
127 } // end namespace gpudb
128 
129 namespace avro
130 {
131  template<> struct codec_traits<gpudb::ShowSystemTimingResponse>
132  {
133  static void encode(Encoder& e, const gpudb::ShowSystemTimingResponse& v)
134  {
135  ::avro::encode(e, v.endpoints);
136  ::avro::encode(e, v.timeInMs);
137  ::avro::encode(e, v.jobids);
138  ::avro::encode(e, v.info);
139  }
140 
141  static void decode(Decoder& d, gpudb::ShowSystemTimingResponse& v)
142  {
143  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
144  {
145  const std::vector<size_t> fo = rd->fieldOrder();
146 
147  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
148  {
149  switch (*it)
150  {
151  case 0:
152  ::avro::decode(d, v.endpoints);
153  break;
154 
155  case 1:
156  ::avro::decode(d, v.timeInMs);
157  break;
158 
159  case 2:
160  ::avro::decode(d, v.jobids);
161  break;
162 
163  case 3:
164  ::avro::decode(d, v.info);
165  break;
166 
167  default:
168  break;
169  }
170  }
171  }
172  else
173  {
174  ::avro::decode(d, v.endpoints);
175  ::avro::decode(d, v.timeInMs);
176  ::avro::decode(d, v.jobids);
177  ::avro::decode(d, v.info);
178  }
179  }
180  };
181 } // end namespace avro
182 
183 #endif // __SHOW_SYSTEM_TIMING_H__
std::vector< float > timeInMs
List of time (in ms) of the recent requests.
A set of parameters for GPUdb::showSystemTiming.
std::map< std::string, std::string > options
Optional parameters, currently unused.
ShowSystemTimingRequest()
Constructs a ShowSystemTimingRequest object with default parameters.
std::vector< std::string > jobids
List of the internal job ids for the recent requests.
ShowSystemTimingResponse()
Constructs a ShowSystemTimingResponse object with default parameters.
std::vector< std::string > endpoints
List of recently called endpoints, most recent first.
ShowSystemTimingRequest(const std::map< std::string, std::string > &options_)
Constructs a ShowSystemTimingRequest object with the specified parameters.
std::map< std::string, std::string > info
Additional information.
A set of results returned by GPUdb::showSystemTiming.