Package io.vertx.rxjava3.sqlclient
Class Row
- java.lang.Object
-
- io.vertx.rxjava3.sqlclient.Tuple
-
- io.vertx.rxjava3.sqlclient.Row
-
- All Implemented Interfaces:
io.vertx.lang.rx.RxDelegate
public class Row extends Tuple implements io.vertx.lang.rx.RxDelegate
A single row of theexecution result rowset.NOTE: This class has been automatically generated from the
originalnon RX-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static io.vertx.lang.rx.TypeArg<Row>__TYPE_ARGstatic ObjectJSON_NULLThe JSON null literal value.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)<T> Tget(Class<T> type, String column)LikeTuple.get(java.lang.Class<T>, int)but specifying thecolumninstead of the position.BigDecimal[]getArrayOfBigDecimals(String column)Get an array of value for the givencolumn.Boolean[]getArrayOfBooleans(String column)Get an array ofBooleanvalue for the givencolumn.Double[]getArrayOfDoubles(String column)Get an array ofDoublevalue for the givencolumn.Float[]getArrayOfFloats(String column)Get an array ofFloatvalue for the givencolumn.Integer[]getArrayOfIntegers(String column)Get an array ofIntegervalue 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 nullor one of the following types: String Number JsonObject JsonArray BooleanLocalDate[]getArrayOfLocalDates(String column)Get an array of value for the givencolumn.LocalDateTime[]getArrayOfLocalDateTimes(String column)Get an array of value for the givencolumn.LocalTime[]getArrayOfLocalTimes(String column)Get an array of value for the givencolumn.Long[]getArrayOfLongs(String column)Get an array ofLongvalue for the givencolumn.Numeric[]getArrayOfNumerics(String column)Get an array of value for the givencolumn.OffsetDateTime[]getArrayOfOffsetDateTimes(String column)Get an array of value for the givencolumn.OffsetTime[]getArrayOfOffsetTimes(String column)Get an array of value for the givencolumn.Short[]getArrayOfShorts(String column)Get an array ofShortvalue for the givencolumn.String[]getArrayOfStrings(String column)Get an array ofStringvalue for the givencolumn.Temporal[]getArrayOfTemporals(String column)Get an array of value for the givencolumn.UUID[]getArrayOfUUIDs(String column)Get an array of value for the givencolumn.BigDecimalgetBigDecimal(String column)Get value for the givencolumn.BooleangetBoolean(String column)Get a boolean value for the givencolumn.BuffergetBuffer(String column)Get a buffer value for the givencolumn.intgetColumnIndex(String column)Get a column position for the given @code column}.StringgetColumnName(int pos)Get a column name atpos.RowgetDelegate()DoublegetDouble(String column)Get a double value for the givencolumn.FloatgetFloat(String column)Get a float value for the givencolumn.IntegergetInteger(String column)Get an integer value for the givencolumn.ObjectgetJson(String column)Get a JSON element for the givencolumn, the element might be#JSON_NULL nullor one of the following types: String Number JsonObject JsonArray BooleanJsonArraygetJsonArray(String column)Get a value for the givencolumn.JsonObjectgetJsonObject(String column)Get a value for the givencolumn.LocalDategetLocalDate(String column)GetLocalDatevalue for the givencolumn.LocalDateTimegetLocalDateTime(String column)GetLocalDateTimevalue for the givencolumn.LocalTimegetLocalTime(String column)GetLocalTimevalue for the givencolumn.LonggetLong(String column)Get a long value for the givencolumn.NumericgetNumeric(String column)Get value for the givencolumn.OffsetDateTimegetOffsetDateTime(String column)GetOffsetDateTimevalue for the givencolumn.OffsetTimegetOffsetTime(String column)GetOffsetTimevalue for the givencolumn.ShortgetShort(String column)Get a short value for the givencolumn.StringgetString(String column)Get a string value for the givencolumn.TemporalgetTemporal(String column)Get a temporal value for the givencolumn.UUIDgetUUID(String column)GetUUIDvalue for the givencolumn.ObjectgetValue(String column)Get a value for the givencolumn.inthashCode()static RownewInstance(Row arg)voidrelease()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.JsonObjecttoJson()Return a JSON object representation of the row.StringtoString()-
Methods inherited from class io.vertx.rxjava3.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()
- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate- Overrides:
getDelegatein 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
-1if not found
-
getValue
public Object getValue(String column)
Get a value for the givencolumn.- Parameters:
column- the column name- Returns:
- the
columnvalue
-
getBoolean
public Boolean getBoolean(String column)
Get a boolean value for the givencolumn.- Parameters:
column- the column name- Returns:
- the
columnvalue
-
getShort
public Short getShort(String column)
Get a short value for the givencolumn.- Parameters:
column- the column name- Returns:
- the
columnvalue
-
getInteger
public Integer getInteger(String column)
Get an integer value for the givencolumn.- Parameters:
column- the column name- Returns:
- the
columnvalue
-
getLong
public Long getLong(String column)
Get a long value for the givencolumn.- Parameters:
column- the column name- Returns:
- the
columnvalue
-
getFloat
public Float getFloat(String column)
Get a float value for the givencolumn.- Parameters:
column- the column name- Returns:
- the
columnvalue
-
getDouble
public Double getDouble(String column)
Get a double value for the givencolumn.- Parameters:
column- the column name- Returns:
- the
columnvalue
-
getString
public String getString(String column)
Get a string value for the givencolumn.- Parameters:
column- the column name- Returns:
- the
columnvalue
-
getJson
public Object getJson(String column)
Get a JSON element for the givencolumn, the element might be#JSON_NULL nullor one of the following types:- String
- Number
- JsonObject
- JsonArray
- Boolean
- Parameters:
column- the column name- Returns:
- the
columnvalue
-
getJsonObject
public JsonObject getJsonObject(String column)
Get a value for the givencolumn.- Parameters:
column- the column name- Returns:
- the
columnvalue
-
getJsonArray
public JsonArray getJsonArray(String column)
Get a value for the givencolumn.- Parameters:
column- the column name- Returns:
- the
columnvalue
-
getBuffer
public Buffer getBuffer(String column)
Get a buffer value for the givencolumn.- Parameters:
column- the column name- Returns:
- the
columnvalue
-
get
public <T> T get(Class<T> type, String column)
LikeTuple.get(java.lang.Class<T>, int)but specifying thecolumninstead 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
nullvalue is preserved - JSON elements are preserved
Bufferare 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
columnvalue
-
getTemporal
public Temporal getTemporal(String column)
Get a temporal value for the givencolumn.- Parameters:
column- the column name- Returns:
- the
columnvalue
-
getLocalDate
public LocalDate getLocalDate(String column)
GetLocalDatevalue for the givencolumn.- Parameters:
column- the column name- Returns:
- the
columnvalue
-
getLocalTime
public LocalTime getLocalTime(String column)
GetLocalTimevalue for the givencolumn.- Parameters:
column- the column name- Returns:
- the
columnvalue
-
getLocalDateTime
public LocalDateTime getLocalDateTime(String column)
GetLocalDateTimevalue for the givencolumn.- Parameters:
column- the column name- Returns:
- the
columnvalue
-
getOffsetTime
public OffsetTime getOffsetTime(String column)
GetOffsetTimevalue for the givencolumn.- Parameters:
column- the column name- Returns:
- the
columnvalue
-
getOffsetDateTime
public OffsetDateTime getOffsetDateTime(String column)
GetOffsetDateTimevalue for the givencolumn.- Parameters:
column- the column name- Returns:
- the
columnvalue
-
getUUID
public UUID getUUID(String column)
GetUUIDvalue for the givencolumn.- Parameters:
column- the column name- Returns:
- the
columnvalue
-
getBigDecimal
public BigDecimal getBigDecimal(String column)
Get value for the givencolumn.- Parameters:
column- the column name- Returns:
- the
columnvalue
-
getArrayOfBooleans
public Boolean[] getArrayOfBooleans(String column)
Get an array ofBooleanvalue for the givencolumn.- Parameters:
column- the column name- Returns:
- the
columnvalue
-
getArrayOfShorts
public Short[] getArrayOfShorts(String column)
Get an array ofShortvalue for the givencolumn.- Parameters:
column- the column name- Returns:
- the
columnvalue
-
getArrayOfIntegers
public Integer[] getArrayOfIntegers(String column)
Get an array ofIntegervalue for the givencolumn.- Parameters:
column- the column name- Returns:
- the
columnvalue
-
getArrayOfLongs
public Long[] getArrayOfLongs(String column)
Get an array ofLongvalue for the givencolumn.- Parameters:
column- the column name- Returns:
- the
columnvalue
-
getArrayOfFloats
public Float[] getArrayOfFloats(String column)
Get an array ofFloatvalue for the givencolumn.- Parameters:
column- the column name- Returns:
- the
columnvalue
-
getArrayOfDoubles
public Double[] getArrayOfDoubles(String column)
Get an array ofDoublevalue for the givencolumn.- Parameters:
column- the column name- Returns:
- the
columnvalue
-
getArrayOfNumerics
public Numeric[] getArrayOfNumerics(String column)
Get an array of value for the givencolumn.- Parameters:
column- the column- Returns:
- the
columnvalue
-
getArrayOfStrings
public String[] getArrayOfStrings(String column)
Get an array ofStringvalue for the givencolumn.- Parameters:
column- the column name- Returns:
- the
columnvalue
-
getArrayOfJsonObjects
public JsonObject[] getArrayOfJsonObjects(String column)
Get an array of value for the givencolumn.- Parameters:
column- the column name- Returns:
- the
columnvalue
-
getArrayOfJsonArrays
public JsonArray[] getArrayOfJsonArrays(String column)
Get an array of value for the givencolumn.- Parameters:
column- the column name- Returns:
- the
columnvalue
-
getArrayOfTemporals
public Temporal[] getArrayOfTemporals(String column)
Get an array of value for the givencolumn.- Parameters:
column- the column name- Returns:
- the
columnvalue
-
getArrayOfLocalDates
public LocalDate[] getArrayOfLocalDates(String column)
Get an array of value for the givencolumn.- Parameters:
column- the column name- Returns:
- the
columnvalue
-
getArrayOfLocalTimes
public LocalTime[] getArrayOfLocalTimes(String column)
Get an array of value for the givencolumn.- Parameters:
column- the column name- Returns:
- the
columnvalue
-
getArrayOfLocalDateTimes
public LocalDateTime[] getArrayOfLocalDateTimes(String column)
Get an array of value for the givencolumn.- Parameters:
column- the column name- Returns:
- the
columnvalue
-
getArrayOfOffsetTimes
public OffsetTime[] getArrayOfOffsetTimes(String column)
Get an array of value for the givencolumn.- Parameters:
column- the column name- Returns:
- the
columnvalue
-
getArrayOfOffsetDateTimes
public OffsetDateTime[] getArrayOfOffsetDateTimes(String column)
Get an array of value for the givencolumn.- Parameters:
column- the column name- Returns:
- the
columnvalue
-
getArrayOfUUIDs
public UUID[] getArrayOfUUIDs(String column)
Get an array of value for the givencolumn.- Parameters:
column- the column name- Returns:
- the
columnvalue
-
getArrayOfBigDecimals
public BigDecimal[] getArrayOfBigDecimals(String column)
Get an array of value for the givencolumn.- Parameters:
column- the column name- Returns:
- the
columnvalue
-
getArrayOfJsons
public Object[] getArrayOfJsons(String column)
Get an array of JSON elements for the givencolumn, the element might be#JSON_NULL nullor one of the following types:- String
- Number
- JsonObject
- JsonArray
- Boolean
- Parameters:
column- the column name- Returns:
- the
columnvalue
-
-