Package com.gpudb.protocol
Class VisualizeImageChartResponse
- java.lang.Object
-
- com.gpudb.protocol.VisualizeImageChartResponse
-
- All Implemented Interfaces:
org.apache.avro.generic.GenericContainer,org.apache.avro.generic.IndexedRecord
public class VisualizeImageChartResponse extends Object implements org.apache.avro.generic.IndexedRecord
A set of results returned byGPUdb.visualizeImageChart.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVisualizeImageChartResponse.AxesInfoA set of string constants for theVisualizeImageChartResponseparameteraxesInfo.
-
Constructor Summary
Constructors Constructor Description VisualizeImageChartResponse()Constructs a VisualizeImageChartResponse object with default parameters.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Objectget(int index)This method supports the Avro framework and is not intended to be called directly by the user.Map<String,List<String>>getAxesInfo()Information returned for drawing labels for the axes associated with non-numeric columns.StringgetBgColor()Background color of the image as provided inbgColor.static org.apache.avro.SchemagetClassSchema()This method supports the Avro framework and is not intended to be called directly by the user.intgetHeight()Height of the image as provided inheight.ByteBuffergetImageData()The generated image data.Map<String,String>getInfo()Additional information.doublegetMaxX()Upper bound for the x column values as provided inmaxXor calculated for non-numeric columns when plot_all option is used.doublegetMaxY()Upper bound for the y column values as provided inmaxYor calculated for non-numeric columns when plot_all option is used.doublegetMinX()Lower bound for the x column values as provided inminXor calculated for non-numeric columns when plot_all option is used.doublegetMinY()Lower bound for the y column values as provided inminYor calculated for non-numeric columns when plot_all option is used.org.apache.avro.SchemagetSchema()This method supports the Avro framework and is not intended to be called directly by the user.intgetWidth()Width of the image as provided inwidth.inthashCode()voidput(int index, Object value)This method supports the Avro framework and is not intended to be called directly by the user.VisualizeImageChartResponsesetAxesInfo(Map<String,List<String>> axesInfo)Information returned for drawing labels for the axes associated with non-numeric columns.VisualizeImageChartResponsesetBgColor(String bgColor)Background color of the image as provided inbgColor.VisualizeImageChartResponsesetHeight(int height)Height of the image as provided inheight.VisualizeImageChartResponsesetImageData(ByteBuffer imageData)The generated image data.VisualizeImageChartResponsesetInfo(Map<String,String> info)Additional information.VisualizeImageChartResponsesetMaxX(double maxX)Upper bound for the x column values as provided inmaxXor calculated for non-numeric columns when plot_all option is used.VisualizeImageChartResponsesetMaxY(double maxY)Upper bound for the y column values as provided inmaxYor calculated for non-numeric columns when plot_all option is used.VisualizeImageChartResponsesetMinX(double minX)Lower bound for the x column values as provided inminXor calculated for non-numeric columns when plot_all option is used.VisualizeImageChartResponsesetMinY(double minY)Lower bound for the y column values as provided inminYor calculated for non-numeric columns when plot_all option is used.VisualizeImageChartResponsesetWidth(int width)Width of the image as provided inwidth.StringtoString()
-
-
-
Method Detail
-
getClassSchema
public static org.apache.avro.Schema getClassSchema()
This method supports the Avro framework and is not intended to be called directly by the user.- Returns:
- The schema for the class.
-
getMinX
public double getMinX()
Lower bound for the x column values as provided inminXor calculated for non-numeric columns when plot_all option is used.- Returns:
- The current value of
minX.
-
setMinX
public VisualizeImageChartResponse setMinX(double minX)
Lower bound for the x column values as provided inminXor calculated for non-numeric columns when plot_all option is used.- Parameters:
minX- The new value forminX.- Returns:
thisto mimic the builder pattern.
-
getMaxX
public double getMaxX()
Upper bound for the x column values as provided inmaxXor calculated for non-numeric columns when plot_all option is used.- Returns:
- The current value of
maxX.
-
setMaxX
public VisualizeImageChartResponse setMaxX(double maxX)
Upper bound for the x column values as provided inmaxXor calculated for non-numeric columns when plot_all option is used.- Parameters:
maxX- The new value formaxX.- Returns:
thisto mimic the builder pattern.
-
getMinY
public double getMinY()
Lower bound for the y column values as provided inminYor calculated for non-numeric columns when plot_all option is used.- Returns:
- The current value of
minY.
-
setMinY
public VisualizeImageChartResponse setMinY(double minY)
Lower bound for the y column values as provided inminYor calculated for non-numeric columns when plot_all option is used.- Parameters:
minY- The new value forminY.- Returns:
thisto mimic the builder pattern.
-
getMaxY
public double getMaxY()
Upper bound for the y column values as provided inmaxYor calculated for non-numeric columns when plot_all option is used.- Returns:
- The current value of
maxY.
-
setMaxY
public VisualizeImageChartResponse setMaxY(double maxY)
Upper bound for the y column values as provided inmaxYor calculated for non-numeric columns when plot_all option is used.- Parameters:
maxY- The new value formaxY.- Returns:
thisto mimic the builder pattern.
-
getWidth
public int getWidth()
Width of the image as provided inwidth.- Returns:
- The current value of
width.
-
setWidth
public VisualizeImageChartResponse setWidth(int width)
Width of the image as provided inwidth.- Parameters:
width- The new value forwidth.- Returns:
thisto mimic the builder pattern.
-
getHeight
public int getHeight()
Height of the image as provided inheight.- Returns:
- The current value of
height.
-
setHeight
public VisualizeImageChartResponse setHeight(int height)
Height of the image as provided inheight.- Parameters:
height- The new value forheight.- Returns:
thisto mimic the builder pattern.
-
getBgColor
public String getBgColor()
Background color of the image as provided inbgColor.- Returns:
- The current value of
bgColor.
-
setBgColor
public VisualizeImageChartResponse setBgColor(String bgColor)
Background color of the image as provided inbgColor.- Parameters:
bgColor- The new value forbgColor.- Returns:
thisto mimic the builder pattern.
-
getImageData
public ByteBuffer getImageData()
The generated image data.- Returns:
- The current value of
imageData.
-
setImageData
public VisualizeImageChartResponse setImageData(ByteBuffer imageData)
The generated image data.- Parameters:
imageData- The new value forimageData.- Returns:
thisto mimic the builder pattern.
-
getAxesInfo
public Map<String,List<String>> getAxesInfo()
Information returned for drawing labels for the axes associated with non-numeric columns.SORTED_X_VALUES: Sorted non-numeric x column value list for drawing x axis label.LOCATION_X: X axis label positions of sorted_x_values in pixel coordinates.SORTED_Y_VALUES: Sorted non-numeric y column value list for drawing y axis label.LOCATION_Y: Y axis label positions of sorted_y_values in pixel coordinates.
- Returns:
- The current value of
axesInfo.
-
setAxesInfo
public VisualizeImageChartResponse setAxesInfo(Map<String,List<String>> axesInfo)
Information returned for drawing labels for the axes associated with non-numeric columns.SORTED_X_VALUES: Sorted non-numeric x column value list for drawing x axis label.LOCATION_X: X axis label positions of sorted_x_values in pixel coordinates.SORTED_Y_VALUES: Sorted non-numeric y column value list for drawing y axis label.LOCATION_Y: Y axis label positions of sorted_y_values in pixel coordinates.
- Parameters:
axesInfo- The new value foraxesInfo.- Returns:
thisto mimic the builder pattern.
-
getInfo
public Map<String,String> getInfo()
Additional information.- Returns:
- The current value of
info.
-
setInfo
public VisualizeImageChartResponse setInfo(Map<String,String> info)
Additional information.- Parameters:
info- The new value forinfo.- Returns:
thisto mimic the builder pattern.
-
getSchema
public org.apache.avro.Schema getSchema()
This method supports the Avro framework and is not intended to be called directly by the user.- Specified by:
getSchemain interfaceorg.apache.avro.generic.GenericContainer- Returns:
- The schema object describing this class.
-
get
public Object get(int index)
This method supports the Avro framework and is not intended to be called directly by the user.- Specified by:
getin interfaceorg.apache.avro.generic.IndexedRecord- Parameters:
index- the position of the field to get- Returns:
- value of the field with the given index.
- Throws:
IndexOutOfBoundsException
-
put
public void put(int index, Object value)This method supports the Avro framework and is not intended to be called directly by the user.- Specified by:
putin interfaceorg.apache.avro.generic.IndexedRecord- Parameters:
index- the position of the field to setvalue- the value to set- Throws:
IndexOutOfBoundsException
-
-