Package io.vertx.reactivex.sqlclient
Class Row
- java.lang.Object
-
- io.vertx.reactivex.sqlclient.Tuple
-
- io.vertx.reactivex.sqlclient.Row
-
public class Row extends Tuple
A single row of theexecution result rowset
.NOTE: This class has been automatically generated from the
original
non RX-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static io.vertx.lang.rx.TypeArg<Row>
__TYPE_ARG
static Object
JSON_NULL
The JSON null literal value.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
<T> T
get(Class<T> type, String column)
LikeTuple.get(java.lang.Class<T>, int)
but specifying thecolumn
instead of the position.BigDecimal[]
getArrayOfBigDecimals(String column)
Get an array of value for the givencolumn
.Boolean[]
getArrayOfBooleans(String column)
Get an array ofBoolean
value for the givencolumn
.Double[]
getArrayOfDoubles(String column)
Get an array ofDouble
value for the givencolumn
.Float[]
getArrayOfFloats(String column)
Get an array ofFloat
value for the givencolumn
.Integer[]
getArrayOfIntegers(String column)
Get an array ofInteger
value for the givencolumn
.JsonArray[]
getArrayOfJsonArrays(String column)
Get an array of value for the givencolumn
.JsonObject[]
getArrayOfJsonObjects(String column)
Get an array of value for the givencolumn
.Object[]
getArrayOfJsons(String column)
Get an array of JSON elements for the givencolumn
, the element might be#JSON_NULL null
or one of the following types: String Number JsonObject JsonArray Booleanjava.time.LocalDate[]
getArrayOfLocalDates(String column)
Get an array of value for the givencolumn
.java.time.LocalDateTime[]
getArrayOfLocalDateTimes(String column)
Get an array of value for the givencolumn
.java.time.LocalTime[]
getArrayOfLocalTimes(String column)
Get an array of value for the givencolumn
.Long[]
getArrayOfLongs(String column)
Get an array ofLong
value for the givencolumn
.Numeric[]
getArrayOfNumerics(String column)
Get an array of value for the givencolumn
.java.time.OffsetDateTime[]
getArrayOfOffsetDateTimes(String column)
Get an array of value for the givencolumn
.java.time.OffsetTime[]
getArrayOfOffsetTimes(String column)
Get an array of value for the givencolumn
.Short[]
getArrayOfShorts(String column)
Get an array ofShort
value for the givencolumn
.String[]
getArrayOfStrings(String column)
Get an array ofString
value for the givencolumn
.java.time.temporal.Temporal[]
getArrayOfTemporals(String column)
Get an array of value for the givencolumn
.UUID[]
getArrayOfUUIDs(String column)
Get an array of value for the givencolumn
.BigDecimal
getBigDecimal(String column)
Get value for the givencolumn
.Boolean
getBoolean(String column)
Get a boolean value for the givencolumn
.Buffer
getBuffer(String column)
Get a buffer value for the givencolumn
.int
getColumnIndex(String column)
Get a column position for the given @code column}.String
getColumnName(int pos)
Get a column name atpos
.Row
getDelegate()
Double
getDouble(String column)
Get a double value for the givencolumn
.Float
getFloat(String column)
Get a float value for the givencolumn
.Integer
getInteger(String column)
Get an integer value for the givencolumn
.Object
getJson(String column)
Get a JSON element for the givencolumn
, the element might be#JSON_NULL null
or one of the following types: String Number JsonObject JsonArray BooleanJsonArray
getJsonArray(String column)
Get a value for the givencolumn
.JsonObject
getJsonObject(String column)
Get a value for the givencolumn
.java.time.LocalDate
getLocalDate(String column)
GetLocalDate
value for the givencolumn
.java.time.LocalDateTime
getLocalDateTime(String column)
GetLocalDateTime
value for the givencolumn
.java.time.LocalTime
getLocalTime(String column)
GetLocalTime
value for the givencolumn
.Long
getLong(String column)
Get a long value for the givencolumn
.Numeric
getNumeric(String column)
Get value for the givencolumn
.java.time.OffsetDateTime
getOffsetDateTime(String column)
GetOffsetDateTime
value for the givencolumn
.java.time.OffsetTime
getOffsetTime(String column)
GetOffsetTime
value for the givencolumn
.Short
getShort(String column)
Get a short value for the givencolumn
.String
getString(String column)
Get a string value for the givencolumn
.java.time.temporal.Temporal
getTemporal(String column)
Get a temporal value for the givencolumn
.UUID
getUUID(String column)
GetUUID
value for the givencolumn
.Object
getValue(String column)
Get a value for the givencolumn
.int
hashCode()
static Row
newInstance(Row arg)
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.JsonObject
toJson()
Return a JSON object representation of the row.String
toString()
-
Methods inherited from class io.vertx.reactivex.sqlclient.Tuple
addArrayOfBigDecimal, addArrayOfBoolean, addArrayOfDouble, addArrayOfFloat, addArrayOfInteger, addArrayOfJsonArray, addArrayOfJsonObject, addArrayOfLocalDate, addArrayOfLocalDateTime, addArrayOfLocalTime, addArrayOfLong, addArrayOfOffsetDateTime, addArrayOfOffsetTime, addArrayOfShort, addArrayOfString, addArrayOfTemporal, addArrayOfUUID, addBigDecimal, addBoolean, addBuffer, addDouble, addFloat, addInteger, addJsonArray, addJsonObject, addLocalDate, addLocalDateTime, addLocalTime, addLong, addOffsetDateTime, addOffsetTime, addShort, addString, addTemporal, addUUID, addValue, clear, deepToString, from, from, get, getArrayOfBigDecimals, getArrayOfBooleans, getArrayOfDoubles, getArrayOfFloats, getArrayOfIntegers, getArrayOfJsonArrays, getArrayOfJsonObjects, getArrayOfJsons, getArrayOfLocalDates, getArrayOfLocalDateTimes, getArrayOfLocalTimes, getArrayOfLongs, getArrayOfNumerics, getArrayOfOffsetDateTimes, getArrayOfOffsetTimes, getArrayOfShorts, getArrayOfStrings, getArrayOfTemporals, getArrayOfUUIDs, getBigDecimal, getBoolean, getBuffer, getDouble, getFloat, getInteger, getJson, getJsonArray, getJsonObject, getLocalDate, getLocalDateTime, getLocalTime, getLong, getNumeric, getOffsetDateTime, getOffsetTime, getShort, getString, getTemporal, getUUID, getValue, newInstance, of, of, of, of, of, of, size, tuple, tuple, wrap, wrap
-
-
-
-
Method Detail
-
getDelegate
public Row getDelegate()
- Overrides:
getDelegate
in classTuple
-
getColumnName
public String getColumnName(int pos)
Get a column name atpos
.- 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 givencolumn
.- Parameters:
column
- the column name- Returns:
- the
column
value
-
getBoolean
public Boolean getBoolean(String column)
Get a boolean value for the givencolumn
.- Parameters:
column
- the column name- Returns:
- the
column
value
-
getShort
public Short getShort(String column)
Get a short value for the givencolumn
.- Parameters:
column
- the column name- Returns:
- the
column
value
-
getInteger
public Integer getInteger(String column)
Get an integer value for the givencolumn
.- Parameters:
column
- the column name- Returns:
- the
column
value
-
getLong
public Long getLong(String column)
Get a long value for the givencolumn
.- Parameters:
column
- the column name- Returns:
- the
column
value
-
getFloat
public Float getFloat(String column)
Get a float value for the givencolumn
.- Parameters:
column
- the column name- Returns:
- the
column
value
-
getDouble
public Double getDouble(String column)
Get a double value for the givencolumn
.- Parameters:
column
- the column name- Returns:
- the
column
value
-
getString
public String getString(String column)
Get a string value for the givencolumn
.- Parameters:
column
- the column name- Returns:
- the
column
value
-
getJson
public Object getJson(String column)
Get a JSON element for the givencolumn
, 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 givencolumn
.- Parameters:
column
- the column name- Returns:
- the
column
value
-
getJsonArray
public JsonArray getJsonArray(String column)
Get a value for the givencolumn
.- Parameters:
column
- the column name- Returns:
- the
column
value
-
getBuffer
public Buffer getBuffer(String column)
Get a buffer value for the givencolumn
.- Parameters:
column
- the column name- Returns:
- the
column
value
-
get
public <T> T get(Class<T> type, String column)
LikeTuple.get(java.lang.Class<T>, int)
but specifying thecolumn
instead of the position.- Parameters:
type
-column
-- Returns:
-
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 givencolumn
.- Parameters:
column
- the column- Returns:
- the
column
value
-
getTemporal
public java.time.temporal.Temporal getTemporal(String column)
Get a temporal value for the givencolumn
.- Parameters:
column
- the column name- Returns:
- the
column
value
-
getLocalDate
public java.time.LocalDate getLocalDate(String column)
GetLocalDate
value for the givencolumn
.- Parameters:
column
- the column name- Returns:
- the
column
value
-
getLocalTime
public java.time.LocalTime getLocalTime(String column)
GetLocalTime
value for the givencolumn
.- Parameters:
column
- the column name- Returns:
- the
column
value
-
getLocalDateTime
public java.time.LocalDateTime getLocalDateTime(String column)
GetLocalDateTime
value for the givencolumn
.- Parameters:
column
- the column name- Returns:
- the
column
value
-
getOffsetTime
public java.time.OffsetTime getOffsetTime(String column)
GetOffsetTime
value for the givencolumn
.- Parameters:
column
- the column name- Returns:
- the
column
value
-
getOffsetDateTime
public java.time.OffsetDateTime getOffsetDateTime(String column)
GetOffsetDateTime
value for the givencolumn
.- Parameters:
column
- the column name- Returns:
- the
column
value
-
getUUID
public UUID getUUID(String column)
GetUUID
value for the givencolumn
.- Parameters:
column
- the column name- Returns:
- the
column
value
-
getBigDecimal
public BigDecimal getBigDecimal(String column)
Get value for the givencolumn
.- Parameters:
column
- the column name- Returns:
- the
column
value
-
getArrayOfBooleans
public Boolean[] getArrayOfBooleans(String column)
Get an array ofBoolean
value for the givencolumn
.- Parameters:
column
- the column name- Returns:
- the
column
value
-
getArrayOfShorts
public Short[] getArrayOfShorts(String column)
Get an array ofShort
value for the givencolumn
.- Parameters:
column
- the column name- Returns:
- the
column
value
-
getArrayOfIntegers
public Integer[] getArrayOfIntegers(String column)
Get an array ofInteger
value for the givencolumn
.- Parameters:
column
- the column name- Returns:
- the
column
value
-
getArrayOfLongs
public Long[] getArrayOfLongs(String column)
Get an array ofLong
value for the givencolumn
.- Parameters:
column
- the column name- Returns:
- the
column
value
-
getArrayOfFloats
public Float[] getArrayOfFloats(String column)
Get an array ofFloat
value for the givencolumn
.- Parameters:
column
- the column name- Returns:
- the
column
value
-
getArrayOfDoubles
public Double[] getArrayOfDoubles(String column)
Get an array ofDouble
value for the givencolumn
.- Parameters:
column
- the column name- Returns:
- the
column
value
-
getArrayOfNumerics
public Numeric[] getArrayOfNumerics(String column)
Get an array of value for the givencolumn
.- Parameters:
column
- the column- Returns:
- the
column
value
-
getArrayOfStrings
public String[] getArrayOfStrings(String column)
Get an array ofString
value for the givencolumn
.- Parameters:
column
- the column name- Returns:
- the
column
value
-
getArrayOfJsonObjects
public JsonObject[] getArrayOfJsonObjects(String column)
Get an array of value for the givencolumn
.- Parameters:
column
- the column name- Returns:
- the
column
value
-
getArrayOfJsonArrays
public JsonArray[] getArrayOfJsonArrays(String column)
Get an array of value for the givencolumn
.- Parameters:
column
- the column name- Returns:
- the
column
value
-
getArrayOfTemporals
public java.time.temporal.Temporal[] getArrayOfTemporals(String column)
Get an array of value for the givencolumn
.- Parameters:
column
- the column name- Returns:
- the
column
value
-
getArrayOfLocalDates
public java.time.LocalDate[] getArrayOfLocalDates(String column)
Get an array of value for the givencolumn
.- Parameters:
column
- the column name- Returns:
- the
column
value
-
getArrayOfLocalTimes
public java.time.LocalTime[] getArrayOfLocalTimes(String column)
Get an array of value for the givencolumn
.- Parameters:
column
- the column name- Returns:
- the
column
value
-
getArrayOfLocalDateTimes
public java.time.LocalDateTime[] getArrayOfLocalDateTimes(String column)
Get an array of value for the givencolumn
.- Parameters:
column
- the column name- Returns:
- the
column
value
-
getArrayOfOffsetTimes
public java.time.OffsetTime[] getArrayOfOffsetTimes(String column)
Get an array of value for the givencolumn
.- Parameters:
column
- the column name- Returns:
- the
column
value
-
getArrayOfOffsetDateTimes
public java.time.OffsetDateTime[] getArrayOfOffsetDateTimes(String column)
Get an array of value for the givencolumn
.- Parameters:
column
- the column name- Returns:
- the
column
value
-
getArrayOfUUIDs
public UUID[] getArrayOfUUIDs(String column)
Get an array of value for the givencolumn
.- Parameters:
column
- the column name- Returns:
- the
column
value
-
getArrayOfBigDecimals
public BigDecimal[] getArrayOfBigDecimals(String column)
Get an array of value for the givencolumn
.- Parameters:
column
- the column name- Returns:
- the
column
value
-
getArrayOfJsons
public Object[] getArrayOfJsons(String column)
Get an array of JSON elements for the givencolumn
, 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
-
-