GPUdb C++ API  Version 7.2.2.4
export_query_metrics.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 __EXPORT_QUERY_METRICS_H__
7 #define __EXPORT_QUERY_METRICS_H__
8 
9 namespace gpudb
10 {
20  {
26  options(std::map<std::string, std::string>())
27  {
28  }
29 
74  ExportQueryMetricsRequest(const std::map<std::string, std::string>& options_):
75  options( options_ )
76  {
77  }
78 
110  std::map<std::string, std::string> options;
111  };
112 } // end namespace gpudb
113 
114 namespace avro
115 {
116  template<> struct codec_traits<gpudb::ExportQueryMetricsRequest>
117  {
118  static void encode(Encoder& e, const gpudb::ExportQueryMetricsRequest& v)
119  {
120  ::avro::encode(e, v.options);
121  }
122 
123  static void decode(Decoder& d, gpudb::ExportQueryMetricsRequest& 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.options);
135  break;
136 
137  default:
138  break;
139  }
140  }
141  }
142  else
143  {
144  ::avro::decode(d, v.options);
145  }
146  }
147  };
148 } // end namespace avro
149 
150 namespace gpudb
151 {
158  {
164  info(std::map<std::string, std::string>())
165  {
166  }
167 
180  std::map<std::string, std::string> info;
181  };
182 } // end namespace gpudb
183 
184 namespace avro
185 {
186  template<> struct codec_traits<gpudb::ExportQueryMetricsResponse>
187  {
188  static void encode(Encoder& e, const gpudb::ExportQueryMetricsResponse& v)
189  {
190  ::avro::encode(e, v.info);
191  }
192 
193  static void decode(Decoder& d, gpudb::ExportQueryMetricsResponse& v)
194  {
195  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
196  {
197  const std::vector<size_t> fo = rd->fieldOrder();
198 
199  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
200  {
201  switch (*it)
202  {
203  case 0:
204  ::avro::decode(d, v.info);
205  break;
206 
207  default:
208  break;
209  }
210  }
211  }
212  else
213  {
214  ::avro::decode(d, v.info);
215  }
216  }
217  };
218 } // end namespace avro
219 
220 #endif // __EXPORT_QUERY_METRICS_H__
std::map< std::string, std::string > info
Additional information.
ExportQueryMetricsRequest(const std::map< std::string, std::string > &options_)
Constructs an ExportQueryMetricsRequest object with the specified parameters.
ExportQueryMetricsResponse()
Constructs an ExportQueryMetricsResponse object with default parameters.
A set of results returned by GPUdb::exportQueryMetrics.
A set of parameters for GPUdb::exportQueryMetrics.
ExportQueryMetricsRequest()
Constructs an ExportQueryMetricsRequest object with default parameters.
std::map< std::string, std::string > options
Optional parameters.