public interface Row extends Tuple
execution result rowset
.Modifier and Type | Method and Description |
---|---|
default <T> T |
get(Class<T> type,
String column)
Like
Tuple.get(Class, int) but specifying the column instead of the position. |
default BigDecimal[] |
getArrayOfBigDecimals(String column)
Get an array of
BigDecimal value for the given column . |
default Boolean[] |
getArrayOfBooleans(String column)
Get an array of
Boolean value for the given column . |
default Buffer[] |
getArrayOfBuffers(String column)
Get an array of
Buffer value for the given column . |
default Double[] |
getArrayOfDoubles(String column)
Get an array of
Double value for the given column . |
default Float[] |
getArrayOfFloats(String column)
Get an array of
Float value for the given column . |
default Integer[] |
getArrayOfIntegers(String column)
Get an array of
Integer value for the given column . |
default JsonArray[] |
getArrayOfJsonArrays(String column)
Get an array of
JsonArray value for the given column . |
default JsonObject[] |
getArrayOfJsonObjects(String column)
Get an array of
JsonObject value for the given column . |
default Object[] |
getArrayOfJsons(String column)
Get an array of JSON elements for the given
column , the element might be null or one of the following types:
String
Number
JsonObject
JsonArray
Boolean
|
default java.time.LocalDate[] |
getArrayOfLocalDates(String column)
Get an array of
LocalDate value for the given column . |
default java.time.LocalDateTime[] |
getArrayOfLocalDateTimes(String column)
Get an array of
LocalDateTime value for the given column . |
default java.time.LocalTime[] |
getArrayOfLocalTimes(String column)
Get an array of
LocalTime value for the given column . |
default Long[] |
getArrayOfLongs(String column)
Get an array of
Long value for the given column . |
default Numeric[] |
getArrayOfNumerics(String column)
Get an array of
Numeric value for the given column . |
default java.time.OffsetDateTime[] |
getArrayOfOffsetDateTimes(String column)
Get an array of
OffsetDateTime value for the given column . |
default java.time.OffsetTime[] |
getArrayOfOffsetTimes(String column)
Get an array of
OffsetTime value for the given column . |
default Short[] |
getArrayOfShorts(String column)
Get an array of
Short value for the given column . |
default String[] |
getArrayOfStrings(String column)
Get an array of
String value for the given column . |
default java.time.temporal.Temporal[] |
getArrayOfTemporals(String column)
Get an array of
Temporal value for the given column . |
default UUID[] |
getArrayOfUUIDs(String column)
Get an array of
UUID value for the given column . |
default BigDecimal |
getBigDecimal(String column)
Get
BigDecimal value for the given column . |
default Boolean |
getBoolean(String column)
Get a boolean value for the given
column . |
default Buffer |
getBuffer(String column)
Get a buffer value for the given
column . |
int |
getColumnIndex(String column)
Get a column position for the given @code column}.
|
String |
getColumnName(int pos)
Get a column name at
pos . |
default Double |
getDouble(String column)
Get a double value for the given
column . |
default Float |
getFloat(String column)
Get a float value for the given
column . |
default Integer |
getInteger(String column)
Get an integer value for the given
column . |
default Object |
getJson(String column)
Get a JSON element for the given
column , the element might be null or one of the following types:
String
Number
JsonObject
JsonArray
Boolean
|
default JsonArray |
getJsonArray(String column)
Get a
JsonArray value for the given column . |
default JsonObject |
getJsonObject(String column)
Get a
JsonObject value for the given column . |
default java.time.LocalDate |
getLocalDate(String column)
Get
LocalDate value for the given column . |
default java.time.LocalDateTime |
getLocalDateTime(String column)
Get
LocalDateTime value for the given column . |
default java.time.LocalTime |
getLocalTime(String column)
Get
LocalTime value for the given column . |
default Long |
getLong(String column)
Get a long value for the given
column . |
default Numeric |
getNumeric(String column)
Get
Numeric value for the given column . |
default java.time.OffsetDateTime |
getOffsetDateTime(String column)
Get
OffsetDateTime value for the given column . |
default java.time.OffsetTime |
getOffsetTime(String column)
Get
OffsetTime value for the given column . |
default Short |
getShort(String column)
Get a short value for the given
column . |
default String |
getString(String column)
Get a string value for the given
column . |
default java.time.temporal.Temporal |
getTemporal(String column)
Get a temporal value for the given
column . |
default UUID |
getUUID(String column)
Get
UUID value for the given column . |
default Object |
getValue(String column)
Get a value for the given
column . |
default 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.
|
default JsonObject |
toJson()
Return a JSON object representation of the row.
|
addArrayOfBigDecimal, addArrayOfBoolean, addArrayOfBuffer, 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, getArrayOfBuffers, 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, of, of, of, of, of, of, of, size, tuple, tuple, types, wrap, wrap
String getColumnName(int pos)
pos
.pos
- the column positionnull
int getColumnIndex(String column)
column
- the column name-1
if not founddefault Object getValue(String column)
column
.column
- the column namecolumn
valueNoSuchElementException
- when the column
does not existdefault Boolean getBoolean(String column)
column
.column
- the column namecolumn
valueNoSuchElementException
- when the column
does not existdefault Short getShort(String column)
column
.column
- the column namecolumn
valueNoSuchElementException
- when the column
does not existdefault Integer getInteger(String column)
column
.column
- the column namecolumn
valueNoSuchElementException
- when the column
does not existdefault Long getLong(String column)
column
.column
- the column namecolumn
valueNoSuchElementException
- when the column
does not existdefault Float getFloat(String column)
column
.column
- the column namecolumn
valueNoSuchElementException
- when the column
does not existdefault Double getDouble(String column)
column
.column
- the column namecolumn
valueNoSuchElementException
- when the column
does not existdefault Numeric getNumeric(String column)
Numeric
value for the given column
.column
- the columncolumn
valueNoSuchElementException
- when the column
does not existdefault String getString(String column)
column
.column
- the column namecolumn
valueNoSuchElementException
- when the column
does not existdefault Object getJson(String column)
column
, the element might be null
or one of the following types:
column
- the column namecolumn
valueNoSuchElementException
- when the column
does not existdefault JsonObject getJsonObject(String column)
JsonObject
value for the given column
.column
- the column namecolumn
valueNoSuchElementException
- when the column
does not existdefault JsonArray getJsonArray(String column)
JsonArray
value for the given column
.column
- the column namecolumn
valueNoSuchElementException
- when the column
does not existdefault java.time.temporal.Temporal getTemporal(String column)
column
.column
- the column namecolumn
valueNoSuchElementException
- when the column
does not existdefault java.time.LocalDate getLocalDate(String column)
LocalDate
value for the given column
.column
- the column namecolumn
valueNoSuchElementException
- when the column
does not existdefault java.time.LocalTime getLocalTime(String column)
LocalTime
value for the given column
.column
- the column namecolumn
valueNoSuchElementException
- when the column
does not existdefault java.time.LocalDateTime getLocalDateTime(String column)
LocalDateTime
value for the given column
.column
- the column namecolumn
valueNoSuchElementException
- when the column
does not existdefault java.time.OffsetTime getOffsetTime(String column)
OffsetTime
value for the given column
.column
- the column namecolumn
valueNoSuchElementException
- when the column
does not existdefault java.time.OffsetDateTime getOffsetDateTime(String column)
OffsetDateTime
value for the given column
.column
- the column namecolumn
valueNoSuchElementException
- when the column
does not existdefault Buffer getBuffer(String column)
column
.column
- the column namecolumn
valueNoSuchElementException
- when the column
does not existdefault UUID getUUID(String column)
UUID
value for the given column
.column
- the column namecolumn
valueNoSuchElementException
- when the column
does not existdefault BigDecimal getBigDecimal(String column)
BigDecimal
value for the given column
.column
- the column namecolumn
valueNoSuchElementException
- when the column
does not existdefault Boolean[] getArrayOfBooleans(String column)
Boolean
value for the given column
.column
- the column namecolumn
valueNoSuchElementException
- when the column
does not existdefault Short[] getArrayOfShorts(String column)
Short
value for the given column
.column
- the column namecolumn
valueNoSuchElementException
- when the column
does not existdefault Integer[] getArrayOfIntegers(String column)
Integer
value for the given column
.column
- the column namecolumn
valueNoSuchElementException
- when the column
does not existdefault Long[] getArrayOfLongs(String column)
Long
value for the given column
.column
- the column namecolumn
valueNoSuchElementException
- when the column
does not existdefault Float[] getArrayOfFloats(String column)
Float
value for the given column
.column
- the column namecolumn
valueNoSuchElementException
- when the column
does not existdefault Double[] getArrayOfDoubles(String column)
Double
value for the given column
.column
- the column namecolumn
valueNoSuchElementException
- when the column
does not existdefault Numeric[] getArrayOfNumerics(String column)
Numeric
value for the given column
.column
- the columncolumn
valueNoSuchElementException
- when the column
does not existdefault String[] getArrayOfStrings(String column)
String
value for the given column
.column
- the column namecolumn
valueNoSuchElementException
- when the column
does not existdefault JsonObject[] getArrayOfJsonObjects(String column)
JsonObject
value for the given column
.column
- the column namecolumn
valueNoSuchElementException
- when the column
does not existdefault JsonArray[] getArrayOfJsonArrays(String column)
JsonArray
value for the given column
.column
- the column namecolumn
valueNoSuchElementException
- when the column
does not existdefault java.time.temporal.Temporal[] getArrayOfTemporals(String column)
Temporal
value for the given column
.column
- the column namecolumn
valueNoSuchElementException
- when the column
does not existdefault java.time.LocalDate[] getArrayOfLocalDates(String column)
LocalDate
value for the given column
.column
- the column namecolumn
valueNoSuchElementException
- when the column
does not existdefault java.time.LocalTime[] getArrayOfLocalTimes(String column)
LocalTime
value for the given column
.column
- the column namecolumn
valueNoSuchElementException
- when the column
does not existdefault java.time.LocalDateTime[] getArrayOfLocalDateTimes(String column)
LocalDateTime
value for the given column
.column
- the column namecolumn
valueNoSuchElementException
- when the column
does not existdefault java.time.OffsetTime[] getArrayOfOffsetTimes(String column)
OffsetTime
value for the given column
.column
- the column namecolumn
valueNoSuchElementException
- when the column
does not existdefault java.time.OffsetDateTime[] getArrayOfOffsetDateTimes(String column)
OffsetDateTime
value for the given column
.column
- the column namecolumn
valueNoSuchElementException
- when the column
does not existdefault Buffer[] getArrayOfBuffers(String column)
Buffer
value for the given column
.column
- the column namecolumn
valueNoSuchElementException
- when the column
does not existdefault UUID[] getArrayOfUUIDs(String column)
UUID
value for the given column
.column
- the column namecolumn
valueNoSuchElementException
- when the column
does not existdefault BigDecimal[] getArrayOfBigDecimals(String column)
BigDecimal
value for the given column
.column
- the column namecolumn
valueNoSuchElementException
- when the column
does not existdefault Object[] getArrayOfJsons(String column)
column
, the element might be null
or one of the following types:
column
- the column namecolumn
valueNoSuchElementException
- when the column
does not existdefault <T> T get(Class<T> type, String column)
Tuple.get(Class, int)
but specifying the column
instead of the position.default JsonObject toJson()
Column names are mapped to JSON keys.
The following rules are applied for the column values:
null
value is preservedBuffer
are converted to base64 encoded stringsJsonArray
default void release()
Copyright © 2024 Eclipse. All rights reserved.