Class Row


  • public class Row
    extends Tuple
    A single row of the execution result rowset.

    NOTE: This class has been automatically generated from the original non RX-ified interface using Vert.x codegen.

    • Field Detail

      • __TYPE_ARG

        public static final TypeArg<Row> __TYPE_ARG
      • JSON_NULL

        public static final Object JSON_NULL
        The JSON null literal value.
        It is used to distinguish a JSON null literal value from the Java null value. This is only used when the database supports JSON types.
    • Constructor Detail

      • Row

        public Row​(Row delegate)
      • Row

        public Row​(Object delegate)
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Tuple
      • getColumnName

        public String getColumnName​(int pos)
        Get a column name at pos.
        Parameters:
        pos - the column position
        Returns:
        the column name or null
      • getColumnIndex

        public int getColumnIndex​(String column)
        Get a column position for the given @code column}.
        Parameters:
        column - the column name
        Returns:
        the column name or -1 if not found
      • getValue

        public Object getValue​(String column)
        Get a value for the given column.
        Parameters:
        column - the column name
        Returns:
        the column value
      • getBoolean

        public Boolean getBoolean​(String column)
        Get a boolean value for the given column.
        Parameters:
        column - the column name
        Returns:
        the column value
      • getShort

        public Short getShort​(String column)
        Get a short value for the given column.
        Parameters:
        column - the column name
        Returns:
        the column value
      • getInteger

        public Integer getInteger​(String column)
        Get an integer value for the given column.
        Parameters:
        column - the column name
        Returns:
        the column value
      • getLong

        public Long getLong​(String column)
        Get a long value for the given column.
        Parameters:
        column - the column name
        Returns:
        the column value
      • getFloat

        public Float getFloat​(String column)
        Get a float value for the given column.
        Parameters:
        column - the column name
        Returns:
        the column value
      • getDouble

        public Double getDouble​(String column)
        Get a double value for the given column.
        Parameters:
        column - the column name
        Returns:
        the column value
      • getString

        public String getString​(String column)
        Get a string value for the given column.
        Parameters:
        column - the column name
        Returns:
        the column value
      • getJson

        public Object getJson​(String column)
        Get a JSON element for the given column, the element might be #JSON_NULL null or one of the following types:
        • String
        • Number
        • JsonObject
        • JsonArray
        • Boolean
        Parameters:
        column - the column name
        Returns:
        the column value
      • getJsonObject

        public JsonObject getJsonObject​(String column)
        Get a value for the given column.
        Parameters:
        column - the column name
        Returns:
        the column value
      • getJsonArray

        public JsonArray getJsonArray​(String column)
        Get a value for the given column.
        Parameters:
        column - the column name
        Returns:
        the column value
      • getBuffer

        public Buffer getBuffer​(String column)
        Get a buffer value for the given column.
        Parameters:
        column - the column name
        Returns:
        the column value
      • toJson

        public JsonObject toJson()
        Return a JSON object representation of the row.

        Column names are mapped to JSON keys.

        The following rules are applied for the column values:

        • number, boolean and string are preserved
        • the null value is preserved
        • JSON elements are preserved
        • Buffer are converted to base64 encoded strings
        • array is mapped JsonArray
        • otherwise the type converted to a string
        Returns:
        the json representation
      • release

        public void release()
        Signal the row can be recycled, this is only effective when dealing with a row in a collector query and the row has already been processed and transformed.
      • getNumeric

        public Numeric getNumeric​(String column)
        Get value for the given column.
        Parameters:
        column - the column
        Returns:
        the column value
      • getTemporal

        public Temporal getTemporal​(String column)
        Get a temporal value for the given column.
        Parameters:
        column - the column name
        Returns:
        the column value
      • getLocalDate

        public LocalDate getLocalDate​(String column)
        Get LocalDate value for the given column.
        Parameters:
        column - the column name
        Returns:
        the column value
      • getLocalTime

        public LocalTime getLocalTime​(String column)
        Get LocalTime value for the given column.
        Parameters:
        column - the column name
        Returns:
        the column value
      • getLocalDateTime

        public LocalDateTime getLocalDateTime​(String column)
        Get LocalDateTime value for the given column.
        Parameters:
        column - the column name
        Returns:
        the column value
      • getOffsetTime

        public OffsetTime getOffsetTime​(String column)
        Get OffsetTime value for the given column.
        Parameters:
        column - the column name
        Returns:
        the column value
      • getOffsetDateTime

        public OffsetDateTime getOffsetDateTime​(String column)
        Get OffsetDateTime value for the given column.
        Parameters:
        column - the column name
        Returns:
        the column value
      • getUUID

        public UUID getUUID​(String column)
        Get UUID value for the given column.
        Parameters:
        column - the column name
        Returns:
        the column value
      • getBigDecimal

        public BigDecimal getBigDecimal​(String column)
        Get value for the given column.
        Parameters:
        column - the column name
        Returns:
        the column value
      • getArrayOfBooleans

        public Boolean[] getArrayOfBooleans​(String column)
        Get an array of Boolean value for the given column.
        Parameters:
        column - the column name
        Returns:
        the column value
      • getArrayOfShorts

        public Short[] getArrayOfShorts​(String column)
        Get an array of Short value for the given column.
        Parameters:
        column - the column name
        Returns:
        the column value
      • getArrayOfIntegers

        public Integer[] getArrayOfIntegers​(String column)
        Get an array of Integer value for the given column.
        Parameters:
        column - the column name
        Returns:
        the column value
      • getArrayOfLongs

        public Long[] getArrayOfLongs​(String column)
        Get an array of Long value for the given column.
        Parameters:
        column - the column name
        Returns:
        the column value
      • getArrayOfFloats

        public Float[] getArrayOfFloats​(String column)
        Get an array of Float value for the given column.
        Parameters:
        column - the column name
        Returns:
        the column value
      • getArrayOfDoubles

        public Double[] getArrayOfDoubles​(String column)
        Get an array of Double value for the given column.
        Parameters:
        column - the column name
        Returns:
        the column value
      • getArrayOfNumerics

        public Numeric[] getArrayOfNumerics​(String column)
        Get an array of value for the given column.
        Parameters:
        column - the column
        Returns:
        the column value
      • getArrayOfStrings

        public String[] getArrayOfStrings​(String column)
        Get an array of String value for the given column.
        Parameters:
        column - the column name
        Returns:
        the column value
      • getArrayOfJsonObjects

        public JsonObject[] getArrayOfJsonObjects​(String column)
        Get an array of value for the given column.
        Parameters:
        column - the column name
        Returns:
        the column value
      • getArrayOfJsonArrays

        public JsonArray[] getArrayOfJsonArrays​(String column)
        Get an array of value for the given column.
        Parameters:
        column - the column name
        Returns:
        the column value
      • getArrayOfTemporals

        public Temporal[] getArrayOfTemporals​(String column)
        Get an array of value for the given column.
        Parameters:
        column - the column name
        Returns:
        the column value
      • getArrayOfLocalDates

        public LocalDate[] getArrayOfLocalDates​(String column)
        Get an array of value for the given column.
        Parameters:
        column - the column name
        Returns:
        the column value
      • getArrayOfLocalTimes

        public LocalTime[] getArrayOfLocalTimes​(String column)
        Get an array of value for the given column.
        Parameters:
        column - the column name
        Returns:
        the column value
      • getArrayOfLocalDateTimes

        public LocalDateTime[] getArrayOfLocalDateTimes​(String column)
        Get an array of value for the given column.
        Parameters:
        column - the column name
        Returns:
        the column value
      • getArrayOfOffsetTimes

        public OffsetTime[] getArrayOfOffsetTimes​(String column)
        Get an array of value for the given column.
        Parameters:
        column - the column name
        Returns:
        the column value
      • getArrayOfOffsetDateTimes

        public OffsetDateTime[] getArrayOfOffsetDateTimes​(String column)
        Get an array of value for the given column.
        Parameters:
        column - the column name
        Returns:
        the column value
      • getArrayOfUUIDs

        public UUID[] getArrayOfUUIDs​(String column)
        Get an array of value for the given column.
        Parameters:
        column - the column name
        Returns:
        the column value
      • getArrayOfBigDecimals

        public BigDecimal[] getArrayOfBigDecimals​(String column)
        Get an array of value for the given column.
        Parameters:
        column - the column name
        Returns:
        the column value
      • getArrayOfJsons

        public Object[] getArrayOfJsons​(String column)
        Get an array of JSON elements for the given column, the element might be #JSON_NULL null or one of the following types:
        • String
        • Number
        • JsonObject
        • JsonArray
        • Boolean
        Parameters:
        column - the column name
        Returns:
        the column value
      • newInstance

        public static Row newInstance​(Row arg)