Class 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 by GPUdb.visualizeImageChart.
    • Constructor Detail

      • VisualizeImageChartResponse

        public VisualizeImageChartResponse()
        Constructs a VisualizeImageChartResponse object with default parameters.
    • 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 in minX or 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 in minX or calculated for non-numeric columns when plot_all option is used.
        Parameters:
        minX - The new value for minX.
        Returns:
        this to mimic the builder pattern.
      • getMaxX

        public double getMaxX()
        Upper bound for the x column values as provided in maxX or 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 in maxX or calculated for non-numeric columns when plot_all option is used.
        Parameters:
        maxX - The new value for maxX.
        Returns:
        this to mimic the builder pattern.
      • getMinY

        public double getMinY()
        Lower bound for the y column values as provided in minY or 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 in minY or calculated for non-numeric columns when plot_all option is used.
        Parameters:
        minY - The new value for minY.
        Returns:
        this to mimic the builder pattern.
      • getMaxY

        public double getMaxY()
        Upper bound for the y column values as provided in maxY or 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 in maxY or calculated for non-numeric columns when plot_all option is used.
        Parameters:
        maxY - The new value for maxY.
        Returns:
        this to mimic the builder pattern.
      • getWidth

        public int getWidth()
        Width of the image as provided in width.
        Returns:
        The current value of width.
      • setWidth

        public VisualizeImageChartResponse setWidth​(int width)
        Width of the image as provided in width.
        Parameters:
        width - The new value for width.
        Returns:
        this to mimic the builder pattern.
      • getHeight

        public int getHeight()
        Height of the image as provided in height.
        Returns:
        The current value of height.
      • setHeight

        public VisualizeImageChartResponse setHeight​(int height)
        Height of the image as provided in height.
        Parameters:
        height - The new value for height.
        Returns:
        this to mimic the builder pattern.
      • getBgColor

        public String getBgColor()
        Background color of the image as provided in bgColor.
        Returns:
        The current value of bgColor.
      • setBgColor

        public VisualizeImageChartResponse setBgColor​(String bgColor)
        Background color of the image as provided in bgColor.
        Parameters:
        bgColor - The new value for bgColor.
        Returns:
        this to 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 for imageData.
        Returns:
        this to 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 for axesInfo.
        Returns:
        this to mimic the builder pattern.
      • getInfo

        public Map<String,​String> getInfo()
        Additional information.
        Returns:
        The current value of info.
      • 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:
        getSchema in interface org.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:
        get in interface org.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:
        put in interface org.apache.avro.generic.IndexedRecord
        Parameters:
        index - the position of the field to set
        value - the value to set
        Throws:
        IndexOutOfBoundsException
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object