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>())
299 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_):
529 template<>
struct codec_traits<
gpudb::VisualizeImageChartRequest>
536 ::avro::encode(e, v.
minX);
537 ::avro::encode(e, v.
maxX);
538 ::avro::encode(e, v.
minY);
539 ::avro::encode(e, v.
maxY);
540 ::avro::encode(e, v.
width);
541 ::avro::encode(e, v.
height);
549 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
551 const std::vector<size_t> fo = rd->fieldOrder();
553 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
570 ::avro::decode(d, v.
minX);
574 ::avro::decode(d, v.
maxX);
578 ::avro::decode(d, v.
minY);
582 ::avro::decode(d, v.
maxY);
586 ::avro::decode(d, v.
width);
590 ::avro::decode(d, v.
height);
615 ::avro::decode(d, v.
minX);
616 ::avro::decode(d, v.
maxX);
617 ::avro::decode(d, v.
minY);
618 ::avro::decode(d, v.
maxY);
619 ::avro::decode(d, v.
width);
620 ::avro::decode(d, v.
height);
651 axesInfo(std::map<std::string, std::vector<std::string> >()),
652 info(std::map<std::string, std::string>())
725 std::map<std::string, std::vector<std::string> >
axesInfo;
730 std::map<std::string, std::string>
info;
736 template<>
struct codec_traits<
gpudb::VisualizeImageChartResponse>
740 ::avro::encode(e, v.
minX);
741 ::avro::encode(e, v.
maxX);
742 ::avro::encode(e, v.
minY);
743 ::avro::encode(e, v.
maxY);
744 ::avro::encode(e, v.
width);
745 ::avro::encode(e, v.
height);
749 ::avro::encode(e, v.
info);
754 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
756 const std::vector<size_t> fo = rd->fieldOrder();
758 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
763 ::avro::decode(d, v.
minX);
767 ::avro::decode(d, v.
maxX);
771 ::avro::decode(d, v.
minY);
775 ::avro::decode(d, v.
maxY);
779 ::avro::decode(d, v.
width);
783 ::avro::decode(d, v.
height);
799 ::avro::decode(d, v.
info);
809 ::avro::decode(d, v.
minX);
810 ::avro::decode(d, v.
maxX);
811 ::avro::decode(d, v.
minY);
812 ::avro::decode(d, v.
maxY);
813 ::avro::decode(d, v.
width);
814 ::avro::decode(d, v.
height);
818 ::avro::decode(d, v.
info);
824 #endif // __VISUALIZE_IMAGE_CHART_H__ A set of parameters for GPUdb::visualizeImageChart.
VisualizeImageChartResponse()
Constructs a VisualizeImageChartResponse object with default parameters.
double maxX
Upper bound for the x column values as provided in maxX or calculated for non-numeric columns when pl...
std::map< std::string, std::vector< std::string > > axesInfo
Information returned for drawing labels for the axes associated with non-numeric columns.
double minX
Lower bound for the x column values.
int32_t height
Height of the image as provided in height.
double minX
Lower bound for the x column values as provided in minX or calculated for non-numeric columns when pl...
std::string bgColor
Background color of the image as provided in bgColor.
std::string tableName
Name of the table containing the data to be drawn as a chart, in [ schema_name. ]table_name format,...
double maxX
Upper bound for the x column values.
std::vector< std::string > yColumnNames
Names of the columns containing the data mapped to the y axis of a chart.
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
The generated image data.
A set of results returned by GPUdb::visualizeImageChart.
double maxY
Upper bound for the y column values as provided in maxY or calculated for non-numeric columns when pl...
int32_t width
Width of the generated image in pixels.
double minY
Lower bound for the y column values as provided in minY or calculated for non-numeric columns when pl...
std::vector< std::string > xColumnNames
Names of the columns containing the data mapped to the x axis of a chart.
std::map< std::string, std::string > info
Additional information.
std::map< std::string, std::string > options
Optional parameters.
double minY
Lower bound for the y column values.
std::map< std::string, std::vector< std::string > > styleOptions
Rendering style options for a chart.
VisualizeImageChartRequest()
Constructs a VisualizeImageChartRequest object with default parameters.
int32_t width
Width of the image as provided in width.
double maxY
Upper bound for the y column values.
int32_t height
Height of the generated image in pixels.
std::string bgColor
Background color of the generated image.