6 #ifndef __VISUALIZE_IMAGE_CHART_H__
7 #define __VISUALIZE_IMAGE_CHART_H__
40 styleOptions(std::map<std::string, std::vector<std::string> >()),
41 options(std::map<std::string, std::string>())
235 VisualizeImageChartRequest(
const std::string& tableName_,
const std::vector<std::string>& xColumnNames_,
const std::vector<std::string>& yColumnNames_,
const double minX_,
const double maxX_,
const double minY_,
const double maxY_,
const int32_t width_,
const int32_t height_,
const std::string& bgColor_,
const std::map<std::string, std::vector<std::string> >& styleOptions_,
const std::map<std::string, std::string>& options_):
268 template<>
struct codec_traits<gpudb::VisualizeImageChartRequest>
275 ::avro::encode(e, v.
minX);
276 ::avro::encode(e, v.
maxX);
277 ::avro::encode(e, v.
minY);
278 ::avro::encode(e, v.
maxY);
279 ::avro::encode(e, v.
width);
280 ::avro::encode(e, v.
height);
288 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
290 const std::vector<size_t> fo = rd->fieldOrder();
292 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
309 ::avro::decode(d, v.
minX);
313 ::avro::decode(d, v.
maxX);
317 ::avro::decode(d, v.
minY);
321 ::avro::decode(d, v.
maxY);
325 ::avro::decode(d, v.
width);
329 ::avro::decode(d, v.
height);
354 ::avro::decode(d, v.
minX);
355 ::avro::decode(d, v.
maxX);
356 ::avro::decode(d, v.
minY);
357 ::avro::decode(d, v.
maxY);
358 ::avro::decode(d, v.
width);
359 ::avro::decode(d, v.
height);
397 axesInfo(std::map<std::string, std::vector<std::string> >()),
398 info(std::map<std::string, std::string>())
410 std::map<std::string, std::vector<std::string> >
axesInfo;
411 std::map<std::string, std::string>
info;
417 template<>
struct codec_traits<gpudb::VisualizeImageChartResponse>
421 ::avro::encode(e, v.
minX);
422 ::avro::encode(e, v.
maxX);
423 ::avro::encode(e, v.
minY);
424 ::avro::encode(e, v.
maxY);
425 ::avro::encode(e, v.
width);
426 ::avro::encode(e, v.
height);
430 ::avro::encode(e, v.
info);
435 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
437 const std::vector<size_t> fo = rd->fieldOrder();
439 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
444 ::avro::decode(d, v.
minX);
448 ::avro::decode(d, v.
maxX);
452 ::avro::decode(d, v.
minY);
456 ::avro::decode(d, v.
maxY);
460 ::avro::decode(d, v.
width);
464 ::avro::decode(d, v.
height);
480 ::avro::decode(d, v.
info);
490 ::avro::decode(d, v.
minX);
491 ::avro::decode(d, v.
maxX);
492 ::avro::decode(d, v.
minY);
493 ::avro::decode(d, v.
maxY);
494 ::avro::decode(d, v.
width);
495 ::avro::decode(d, v.
height);
499 ::avro::decode(d, v.
info);
A set of input parameters for const.
VisualizeImageChartResponse()
Constructs a VisualizeImageChartResponse object with default parameter values.
std::map< std::string, std::vector< std::string > > axesInfo
std::vector< std::string > yColumnNames
VisualizeImageChartRequest(const std::string &tableName_, const std::vector< std::string > &xColumnNames_, const std::vector< std::string > &yColumnNames_, const double minX_, const double maxX_, const double minY_, const double maxY_, const int32_t width_, const int32_t height_, const std::string &bgColor_, const std::map< std::string, std::vector< std::string > > &styleOptions_, const std::map< std::string, std::string > &options_)
Constructs a VisualizeImageChartRequest object with the specified parameters.
std::vector< uint8_t > imageData
A set of output parameters for const.
std::vector< std::string > xColumnNames
std::map< std::string, std::string > info
std::map< std::string, std::string > options
std::map< std::string, std::vector< std::string > > styleOptions
VisualizeImageChartRequest()
Constructs a VisualizeImageChartRequest object with default parameter values.