Interface Tuple
-
- All Known Subinterfaces:
Row
public interface Tuple
A general purpose tuple.CAUTION: indexes start at 0, not at 1.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Tuple
addArrayOfBigDecimal(BigDecimal[] value)
Add an array ofBigDecimal
value at the end of the tuple.default Tuple
addArrayOfBoolean(Boolean[] value)
Add an array ofBoolean
value at the end of the tuple.default Tuple
addArrayOfBuffer(Buffer[] value)
Add an array ofBuffer
value at the end of the tuple.default Tuple
addArrayOfDouble(Double[] value)
Add an array ofDouble
value at the end of the tuple.default Tuple
addArrayOfFloat(Float[] value)
Add an array ofFloat
value at the end of the tuple.default Tuple
addArrayOfInteger(Integer[] value)
Add an array ofInteger
value at the end of the tuple.default Tuple
addArrayOfJsonArray(JsonArray[] value)
Add an array ofJsonArray
value at the end of the tuple.default Tuple
addArrayOfJsonObject(JsonObject[] value)
Add an array ofJsonObject
value at the end of the tuple.default Tuple
addArrayOfLocalDate(java.time.LocalDate[] value)
Add an array ofLocalDate
value at the end of the tuple.default Tuple
addArrayOfLocalDateTime(java.time.LocalDateTime[] value)
Add an array ofLocalDateTime
value at the end of the tuple.default Tuple
addArrayOfLocalTime(java.time.LocalTime[] value)
Add an array ofLocalTime
value at the end of the tuple.default Tuple
addArrayOfLong(Long[] value)
Add an array ofLong
value at the end of the tuple.default Tuple
addArrayOfOffsetDateTime(java.time.OffsetDateTime[] value)
Add an array ofOffsetDateTime
value at the end of the tuple.default Tuple
addArrayOfOffsetTime(java.time.OffsetTime[] value)
Add an array ofOffsetTime
value at the end of the tuple.default Tuple
addArrayOfShort(Short[] value)
Add an array ofShort
value at the end of the tuple.default Tuple
addArrayOfString(String[] value)
Add an array ofString
value at the end of the tuple.default Tuple
addArrayOfTemporal(java.time.temporal.Temporal[] value)
Add an array ofTemporal
value at the end of the tuple.default Tuple
addArrayOfUUID(UUID[] value)
Add an array ofUUID
value at the end of the tuple.default Tuple
addBigDecimal(BigDecimal value)
Add aBigDecimal
value at the end of the tuple.default Tuple
addBoolean(Boolean value)
Add a boolean value at the end of the tuple.default Tuple
addBuffer(Buffer value)
Add a buffer value at the end of the tuple.default Tuple
addDouble(Double value)
Add a double value at the end of the tuple.default Tuple
addFloat(Float value)
Add a float value at the end of the tuple.default Tuple
addInteger(Integer value)
Add an integer value at the end of the tuple.default Tuple
addJsonArray(JsonArray value)
Add aJsonArray
value at the end of the tuple.default Tuple
addJsonObject(JsonObject value)
Add aJsonObject
value at the end of the tuple.default Tuple
addLocalDate(java.time.LocalDate value)
Add aLocalDate
value at the end of the tuple.default Tuple
addLocalDateTime(java.time.LocalDateTime value)
Add aLocalDateTime
value at the end of the tuple.default Tuple
addLocalTime(java.time.LocalTime value)
Add aLocalTime
value at the end of the tuple.default Tuple
addLong(Long value)
Add a long value at the end of the tuple.default Tuple
addOffsetDateTime(java.time.OffsetDateTime value)
Add aOffsetDateTime
value at the end of the tuple.default Tuple
addOffsetTime(java.time.OffsetTime value)
Add aOffsetTime
value at the end of the tuple.default Tuple
addShort(Short value)
Add a short value at the end of the tuple.default Tuple
addString(String value)
Add a string value at the end of the tuple.default Tuple
addTemporal(java.time.temporal.Temporal value)
Add aTemporal
value at the end of the tuple.default Tuple
addUUID(UUID value)
Add aUUID
value at the end of the tuple.Tuple
addValue(Object value)
Add an object value at the end of the tuple.void
clear()
default String
deepToString()
static Tuple
from(Object[] array)
Wrap the providedarray
with a tuple.static <T> Tuple
from(List<T> list)
Wrap the providedlist
with a tuple.default <T> T
get(Class<T> type, int position)
Get the the at the specifiedposition
and the specifiedtype
.default BigDecimal[]
getArrayOfBigDecimals(int pos)
Get an array ofBigDecimal
value atpos
.default Boolean[]
getArrayOfBooleans(int pos)
Get an array ofBoolean
value atpos
.default Buffer[]
getArrayOfBuffers(int pos)
Get an array ofBuffer
value atpos
.default Double[]
getArrayOfDoubles(int pos)
Get an array ofDouble
value atpos
.default Float[]
getArrayOfFloats(int pos)
Get an array ofFloat
value atpos
.default Integer[]
getArrayOfIntegers(int pos)
Get an array ofInteger
value atpos
.default JsonArray[]
getArrayOfJsonArrays(int pos)
Get an array ofJsonArray
value atpos
.default JsonObject[]
getArrayOfJsonObjects(int pos)
Get an array ofJsonObject
value atpos
.default Object[]
getArrayOfJsons(int pos)
Get an array of JSON elements atpos
, the element might benull
or one of the following types: String Number JsonObject JsonArray Booleandefault java.time.LocalDate[]
getArrayOfLocalDates(int pos)
Get an array ofLocalDate
value atpos
.default java.time.LocalDateTime[]
getArrayOfLocalDateTimes(int pos)
Get an array ofLocalDateTime
value atpos
.default java.time.LocalTime[]
getArrayOfLocalTimes(int pos)
Get an array ofLocalTime
value atpos
.default Long[]
getArrayOfLongs(int pos)
Get an array ofLong
value atpos
.default Numeric[]
getArrayOfNumerics(int pos)
Get an array ofNumeric
value atpos
.default java.time.OffsetDateTime[]
getArrayOfOffsetDateTimes(int pos)
Get an array ofOffsetDateTime
value atpos
.default java.time.OffsetTime[]
getArrayOfOffsetTimes(int pos)
Get an array ofOffsetTime
value atpos
.default Short[]
getArrayOfShorts(int pos)
Get an array ofShort
value atpos
.default String[]
getArrayOfStrings(int pos)
Get an array ofString
value atpos
.default java.time.temporal.Temporal[]
getArrayOfTemporals(int pos)
Get an array ofTemporal
value atpos
.default UUID[]
getArrayOfUUIDs(int pos)
Get an array ofUUID
value atpos
.default BigDecimal
getBigDecimal(int pos)
GetBigDecimal
value atpos
.default Boolean
getBoolean(int pos)
Get a boolean value atpos
.default Buffer
getBuffer(int pos)
Get a buffer value atpos
.default Double
getDouble(int pos)
Get a double value atpos
.default Float
getFloat(int pos)
Get a float value atpos
.default Integer
getInteger(int pos)
Get an integer value atpos
.default Object
getJson(int pos)
Get a JSON element atpos
, the element might benull
or one of the following types: String Number JsonObject JsonArray Booleandefault JsonArray
getJsonArray(int pos)
Get aJsonArray
value atpos
.default JsonObject
getJsonObject(int pos)
Get aJsonObject
value atpos
.default java.time.LocalDate
getLocalDate(int pos)
GetLocalDate
value atpos
.default java.time.LocalDateTime
getLocalDateTime(int pos)
GetLocalDateTime
value atpos
.default java.time.LocalTime
getLocalTime(int pos)
GetLocalTime
value atpos
.default Long
getLong(int pos)
Get a long value atpos
.default Numeric
getNumeric(int pos)
GetNumeric
value atpos
.default java.time.OffsetDateTime
getOffsetDateTime(int pos)
GetOffsetDateTime
value atpos
.default java.time.OffsetTime
getOffsetTime(int pos)
GetOffsetTime
value atpos
.default Short
getShort(int pos)
Get a short value atpos
.default String
getString(int pos)
Get a string value atpos
.default java.time.temporal.Temporal
getTemporal(int pos)
Get aTemporal
value atpos
.default UUID
getUUID(int pos)
GetUUID
value atpos
.Object
getValue(int pos)
Get an object value atpos
.static Tuple
of(Object elt1)
Create a tuple of one element.static Tuple
of(Object elt1, Object elt2)
Create a tuple of two elements.static Tuple
of(Object elt1, Object... elts)
Create a tuple of an arbitrary number of elements.static Tuple
of(Object elt1, Object elt2, Object elt3)
Create a tuple of three elements.static Tuple
of(Object elt1, Object elt2, Object elt3, Object elt4)
Create a tuple of four elements.static Tuple
of(Object elt1, Object elt2, Object elt3, Object elt4, Object elt5)
Create a tuple of five elements.static Tuple
of(Object elt1, Object elt2, Object elt3, Object elt4, Object elt5, Object elt6)
Create a tuple of six elements.int
size()
static Tuple
tuple()
static Tuple
tuple(List<Object> elements)
Create a tuple with the providedelements
list.List<Class<?>>
types()
static Tuple
wrap(Object[] array)
Wrap the providedarray
with a tuple.static <T> Tuple
wrap(List<T> list)
Wrap the providedlist
with a tuple.
-
-
-
Field Detail
-
JSON_NULL
static final Object JSON_NULL
The JSON null literal value.
It is used to distinguish a JSON null literal value from the Javanull
value. This is only used when the database supports JSON types.
-
-
Method Detail
-
tuple
static Tuple tuple()
- Returns:
- a new empty tuple
-
from
static <T> Tuple from(List<T> list)
Wrap the providedlist
with a tuple.
The list is not copied and is used as store for tuple elements.- Returns:
- the list wrapped as a tuple
-
from
static Tuple from(Object[] array)
Wrap the providedarray
with a tuple.
The array is not copied and is used as store for tuple elements.- Returns:
- the list wrapped as a tuple
-
wrap
static <T> Tuple wrap(List<T> list)
Wrap the providedlist
with a tuple.
The list is not copied and is used as store for tuple elements.
Note: The list might be modified and users should usetuple(List)
if the list is unmodifiable- Returns:
- the list wrapped as a tuple
-
wrap
static Tuple wrap(Object[] array)
Wrap the providedarray
with a tuple.
The array is not copied and is used as store for tuple elements.- Returns:
- the list wrapped as a tuple
-
of
static Tuple of(Object elt1)
Create a tuple of one element.- Parameters:
elt1
- the first value- Returns:
- the tuple
-
of
static Tuple of(Object elt1, Object elt2)
Create a tuple of two elements.- Parameters:
elt1
- the first valueelt2
- the second value- Returns:
- the tuple
-
of
static Tuple of(Object elt1, Object elt2, Object elt3)
Create a tuple of three elements.- Parameters:
elt1
- the first valueelt2
- the second valueelt3
- the third value- Returns:
- the tuple
-
of
static Tuple of(Object elt1, Object elt2, Object elt3, Object elt4)
Create a tuple of four elements.- Parameters:
elt1
- the first valueelt2
- the second valueelt3
- the third valueelt4
- the fourth value- Returns:
- the tuple
-
of
static Tuple of(Object elt1, Object elt2, Object elt3, Object elt4, Object elt5)
Create a tuple of five elements.- Parameters:
elt1
- the first valueelt2
- the second valueelt3
- the third valueelt4
- the fourth valueelt5
- the fifth value- Returns:
- the tuple
-
of
static Tuple of(Object elt1, Object elt2, Object elt3, Object elt4, Object elt5, Object elt6)
Create a tuple of six elements.- Parameters:
elt1
- the first valueelt2
- the second valuegelt3
- the third valueelt4
- the fourth valueelt5
- the fifth valueelt6
- the sixth value- Returns:
- the tuple
-
of
static Tuple of(Object elt1, Object... elts)
Create a tuple of an arbitrary number of elements.- Parameters:
elt1
- the first elementelts
- the remaining elements- Returns:
- the tuple
-
tuple
static Tuple tuple(List<Object> elements)
Create a tuple with the providedelements
list. Theelements
list is not modified.- Parameters:
elements
- the list of elements- Returns:
- the tuple
-
getValue
Object getValue(int pos)
Get an object value atpos
.- Parameters:
pos
- the position- Returns:
- the value
-
getBoolean
default Boolean getBoolean(int pos)
Get a boolean value atpos
.- Parameters:
pos
- the position- Returns:
- the value
-
getShort
default Short getShort(int pos)
Get a short value atpos
.- Parameters:
pos
- the position- Returns:
- the value
-
getInteger
default Integer getInteger(int pos)
Get an integer value atpos
.- Parameters:
pos
- the position- Returns:
- the value
-
getLong
default Long getLong(int pos)
Get a long value atpos
.- Parameters:
pos
- the position- Returns:
- the value
-
getFloat
default Float getFloat(int pos)
Get a float value atpos
.- Parameters:
pos
- the position- Returns:
- the value
-
getDouble
default Double getDouble(int pos)
Get a double value atpos
.- Parameters:
pos
- the position- Returns:
- the value
-
getNumeric
default Numeric getNumeric(int pos)
GetNumeric
value atpos
.- Parameters:
pos
- the position- Returns:
- the value
-
getString
default String getString(int pos)
Get a string value atpos
.- Parameters:
pos
- the position- Returns:
- the value
-
getJsonObject
default JsonObject getJsonObject(int pos)
Get aJsonObject
value atpos
.- Parameters:
pos
- the position- Returns:
- the value
-
getJsonArray
default JsonArray getJsonArray(int pos)
Get aJsonArray
value atpos
.- Parameters:
pos
- the position- Returns:
- the value
-
getJson
default Object getJson(int pos)
Get a JSON element atpos
, the element might benull
or one of the following types:- String
- Number
- JsonObject
- JsonArray
- Boolean
- Parameters:
pos
- the position- Returns:
- the value
-
getTemporal
default java.time.temporal.Temporal getTemporal(int pos)
Get aTemporal
value atpos
.- Parameters:
pos
- the position- Returns:
- the value
-
getLocalDate
default java.time.LocalDate getLocalDate(int pos)
GetLocalDate
value atpos
.Target element instance of
LocalDateTime
will be coerced toLocalDate
.- Parameters:
pos
- the position- Returns:
- the value
-
getLocalTime
default java.time.LocalTime getLocalTime(int pos)
GetLocalTime
value atpos
.Target element instance of
LocalDateTime
will be coerced toLocalTime
.- Parameters:
pos
- the position- Returns:
- the value
-
getLocalDateTime
default java.time.LocalDateTime getLocalDateTime(int pos)
GetLocalDateTime
value atpos
.- Parameters:
pos
- the position- Returns:
- the value
-
getOffsetTime
default java.time.OffsetTime getOffsetTime(int pos)
GetOffsetTime
value atpos
.Target element instance of
OffsetDateTime
will be coerced toOffsetTime
.- Parameters:
pos
- the position- Returns:
- the value
-
getOffsetDateTime
default java.time.OffsetDateTime getOffsetDateTime(int pos)
GetOffsetDateTime
value atpos
.- Parameters:
pos
- the position- Returns:
- the value
-
getBuffer
default Buffer getBuffer(int pos)
Get a buffer value atpos
.- Parameters:
pos
- the position- Returns:
- the value
-
getUUID
default UUID getUUID(int pos)
GetUUID
value atpos
.- Parameters:
pos
- the position- Returns:
- the value
-
getBigDecimal
default BigDecimal getBigDecimal(int pos)
GetBigDecimal
value atpos
.- Parameters:
pos
- the position- Returns:
- the value
-
getArrayOfBooleans
default Boolean[] getArrayOfBooleans(int pos)
Get an array ofBoolean
value atpos
.Target element instance of
Object[]
will be coerced toBoolean[]
.- Parameters:
pos
- the position- Returns:
- the value
-
getArrayOfShorts
default Short[] getArrayOfShorts(int pos)
Get an array ofShort
value atpos
.Target element instance of
Number[]
orObject[]
will be coerced toShort[]
.- Parameters:
pos
- the position- Returns:
- the value
-
getArrayOfIntegers
default Integer[] getArrayOfIntegers(int pos)
Get an array ofInteger
value atpos
.Target element instance of
Number[]
orObject[]
will be coerced toInteger[]
.- Parameters:
pos
- the position- Returns:
- the value
-
getArrayOfLongs
default Long[] getArrayOfLongs(int pos)
Get an array ofLong
value atpos
.Target element instance of
Number[]
orObject[]
will be coerced toLong[]
.- Parameters:
pos
- the position- Returns:
- the value
-
getArrayOfFloats
default Float[] getArrayOfFloats(int pos)
Get an array ofFloat
value atpos
.Target element instance of
Number[]
orObject[]
will be coerced toFloat[]
.- Parameters:
pos
- the position- Returns:
- the value
-
getArrayOfDoubles
default Double[] getArrayOfDoubles(int pos)
Get an array ofDouble
value atpos
.Target element instance of
Number[]
orObject[]
will be coerced toDouble[]
.- Parameters:
pos
- the position- Returns:
- the value
-
getArrayOfNumerics
default Numeric[] getArrayOfNumerics(int pos)
Get an array ofNumeric
value atpos
.- Parameters:
pos
- the column- Returns:
- the value
-
getArrayOfStrings
default String[] getArrayOfStrings(int pos)
Get an array ofString
value atpos
.Target element instance of
Object[]
will be coerced toString[]
.- Parameters:
pos
- the position- Returns:
- the value
-
getArrayOfJsonObjects
default JsonObject[] getArrayOfJsonObjects(int pos)
Get an array ofJsonObject
value atpos
.- Parameters:
pos
- the position- Returns:
- the value
-
getArrayOfJsonArrays
default JsonArray[] getArrayOfJsonArrays(int pos)
Get an array ofJsonArray
value atpos
.- Parameters:
pos
- the position- Returns:
- the value
-
getArrayOfJsons
default Object[] getArrayOfJsons(int pos)
Get an array of JSON elements atpos
, the element might benull
or one of the following types:- String
- Number
- JsonObject
- JsonArray
- Boolean
- Parameters:
pos
- the position- Returns:
- the value
-
getArrayOfTemporals
default java.time.temporal.Temporal[] getArrayOfTemporals(int pos)
Get an array ofTemporal
value atpos
.- Parameters:
pos
- the position- Returns:
- the value
-
getArrayOfLocalDates
default java.time.LocalDate[] getArrayOfLocalDates(int pos)
Get an array ofLocalDate
value atpos
.Target element instance of
LocalDateTime[]
will be coerced toLocalDate[]
.- Parameters:
pos
- the position- Returns:
- the value
-
getArrayOfLocalTimes
default java.time.LocalTime[] getArrayOfLocalTimes(int pos)
Get an array ofLocalTime
value atpos
.Target element instance of
LocalDateTime[]
will be coerced toLocalTime[]
.- Parameters:
pos
- the position- Returns:
- the value
-
getArrayOfLocalDateTimes
default java.time.LocalDateTime[] getArrayOfLocalDateTimes(int pos)
Get an array ofLocalDateTime
value atpos
.- Parameters:
pos
- the position- Returns:
- the value
-
getArrayOfOffsetTimes
default java.time.OffsetTime[] getArrayOfOffsetTimes(int pos)
Get an array ofOffsetTime
value atpos
.Target element instance of
OffsetDateTime[]
will be coerced toOffsetTime[]
.- Parameters:
pos
- the position- Returns:
- the value
-
getArrayOfOffsetDateTimes
default java.time.OffsetDateTime[] getArrayOfOffsetDateTimes(int pos)
Get an array ofOffsetDateTime
value atpos
.- Parameters:
pos
- the position- Returns:
- the value
-
getArrayOfBuffers
default Buffer[] getArrayOfBuffers(int pos)
Get an array ofBuffer
value atpos
.- Parameters:
pos
- the position- Returns:
- the value
-
getArrayOfUUIDs
default UUID[] getArrayOfUUIDs(int pos)
Get an array ofUUID
value atpos
.- Parameters:
pos
- the column- Returns:
- the value
-
getArrayOfBigDecimals
default BigDecimal[] getArrayOfBigDecimals(int pos)
Get an array ofBigDecimal
value atpos
.- Parameters:
pos
- the column- Returns:
- the value
-
addValue
Tuple addValue(Object value)
Add an object value at the end of the tuple.- Parameters:
value
- the value- Returns:
- a reference to this, so the API can be used fluently
-
addBoolean
default Tuple addBoolean(Boolean value)
Add a boolean value at the end of the tuple.- Parameters:
value
- the value- Returns:
- a reference to this, so the API can be used fluently
-
addShort
default Tuple addShort(Short value)
Add a short value at the end of the tuple.- Parameters:
value
- the value- Returns:
- a reference to this, so the API can be used fluently
-
addInteger
default Tuple addInteger(Integer value)
Add an integer value at the end of the tuple.- Parameters:
value
- the value- Returns:
- a reference to this, so the API can be used fluently
-
addLong
default Tuple addLong(Long value)
Add a long value at the end of the tuple.- Parameters:
value
- the value- Returns:
- a reference to this, so the API can be used fluently
-
addFloat
default Tuple addFloat(Float value)
Add a float value at the end of the tuple.- Parameters:
value
- the value- Returns:
- a reference to this, so the API can be used fluently
-
addDouble
default Tuple addDouble(Double value)
Add a double value at the end of the tuple.- Parameters:
value
- the value- Returns:
- a reference to this, so the API can be used fluently
-
addString
default Tuple addString(String value)
Add a string value at the end of the tuple.- Parameters:
value
- the value- Returns:
- a reference to this, so the API can be used fluently
-
addJsonObject
default Tuple addJsonObject(JsonObject value)
Add aJsonObject
value at the end of the tuple.- Parameters:
value
- the value- Returns:
- a reference to this, so the API can be used fluently
-
addJsonArray
default Tuple addJsonArray(JsonArray value)
Add aJsonArray
value at the end of the tuple.- Parameters:
value
- the value- Returns:
- a reference to this, so the API can be used fluently
-
addTemporal
default Tuple addTemporal(java.time.temporal.Temporal value)
Add aTemporal
value at the end of the tuple.- Parameters:
value
- the value- Returns:
- a reference to this, so the API can be used fluently
-
addLocalDate
default Tuple addLocalDate(java.time.LocalDate value)
Add aLocalDate
value at the end of the tuple.- Parameters:
value
- the value- Returns:
- a reference to this, so the API can be used fluently
-
addLocalTime
default Tuple addLocalTime(java.time.LocalTime value)
Add aLocalTime
value at the end of the tuple.- Parameters:
value
- the value- Returns:
- a reference to this, so the API can be used fluently
-
addLocalDateTime
default Tuple addLocalDateTime(java.time.LocalDateTime value)
Add aLocalDateTime
value at the end of the tuple.- Parameters:
value
- the value- Returns:
- a reference to this, so the API can be used fluently
-
addOffsetTime
default Tuple addOffsetTime(java.time.OffsetTime value)
Add aOffsetTime
value at the end of the tuple.- Parameters:
value
- the value- Returns:
- a reference to this, so the API can be used fluently
-
addOffsetDateTime
default Tuple addOffsetDateTime(java.time.OffsetDateTime value)
Add aOffsetDateTime
value at the end of the tuple.- Parameters:
value
- the value- Returns:
- a reference to this, so the API can be used fluently
-
addBuffer
default Tuple addBuffer(Buffer value)
Add a buffer value at the end of the tuple.- Parameters:
value
- the value- Returns:
- a reference to this, so the API can be used fluently
-
addUUID
default Tuple addUUID(UUID value)
Add aUUID
value at the end of the tuple.- Parameters:
value
- the value- Returns:
- a reference to this, so the API can be used fluently
-
addBigDecimal
default Tuple addBigDecimal(BigDecimal value)
Add aBigDecimal
value at the end of the tuple.- Parameters:
value
- the value- Returns:
- a reference to this, so the API can be used fluently
-
addArrayOfBoolean
default Tuple addArrayOfBoolean(Boolean[] value)
Add an array ofBoolean
value at the end of the tuple.- Parameters:
value
- the value- Returns:
- a reference to this, so the API can be used fluently
-
addArrayOfShort
default Tuple addArrayOfShort(Short[] value)
Add an array ofShort
value at the end of the tuple.- Parameters:
value
- the value- Returns:
- a reference to this, so the API can be used fluently
-
addArrayOfInteger
default Tuple addArrayOfInteger(Integer[] value)
Add an array ofInteger
value at the end of the tuple.Target element instance of
Number[]
will be coerced toInteger[]
.- Parameters:
value
- the value- Returns:
- a reference to this, so the API can be used fluently
-
addArrayOfLong
default Tuple addArrayOfLong(Long[] value)
Add an array ofLong
value at the end of the tuple.- Parameters:
value
- the value- Returns:
- a reference to this, so the API can be used fluently
-
addArrayOfFloat
default Tuple addArrayOfFloat(Float[] value)
Add an array ofFloat
value at the end of the tuple.- Parameters:
value
- the value- Returns:
- a reference to this, so the API can be used fluently
-
addArrayOfDouble
default Tuple addArrayOfDouble(Double[] value)
Add an array ofDouble
value at the end of the tuple.- Parameters:
value
- the value- Returns:
- a reference to this, so the API can be used fluently
-
addArrayOfString
default Tuple addArrayOfString(String[] value)
Add an array ofString
value at the end of the tuple.- Parameters:
value
- the value- Returns:
- a reference to this, so the API can be used fluently
-
addArrayOfJsonObject
default Tuple addArrayOfJsonObject(JsonObject[] value)
Add an array ofJsonObject
value at the end of the tuple.- Parameters:
value
- the value- Returns:
- a reference to this, so the API can be used fluently
-
addArrayOfJsonArray
default Tuple addArrayOfJsonArray(JsonArray[] value)
Add an array ofJsonArray
value at the end of the tuple.- Parameters:
value
- the value- Returns:
- a reference to this, so the API can be used fluently
-
addArrayOfTemporal
default Tuple addArrayOfTemporal(java.time.temporal.Temporal[] value)
Add an array ofTemporal
value at the end of the tuple.- Parameters:
value
- the value- Returns:
- a reference to this, so the API can be used fluently
-
addArrayOfLocalDate
default Tuple addArrayOfLocalDate(java.time.LocalDate[] value)
Add an array ofLocalDate
value at the end of the tuple.- Parameters:
value
- the value- Returns:
- a reference to this, so the API can be used fluently
-
addArrayOfLocalTime
default Tuple addArrayOfLocalTime(java.time.LocalTime[] value)
Add an array ofLocalTime
value at the end of the tuple.- Parameters:
value
- the value- Returns:
- a reference to this, so the API can be used fluently
-
addArrayOfLocalDateTime
default Tuple addArrayOfLocalDateTime(java.time.LocalDateTime[] value)
Add an array ofLocalDateTime
value at the end of the tuple.- Parameters:
value
- the value- Returns:
- a reference to this, so the API can be used fluently
-
addArrayOfOffsetTime
default Tuple addArrayOfOffsetTime(java.time.OffsetTime[] value)
Add an array ofOffsetTime
value at the end of the tuple.- Parameters:
value
- the value- Returns:
- a reference to this, so the API can be used fluently
-
addArrayOfOffsetDateTime
default Tuple addArrayOfOffsetDateTime(java.time.OffsetDateTime[] value)
Add an array ofOffsetDateTime
value at the end of the tuple.- Parameters:
value
- the value- Returns:
- a reference to this, so the API can be used fluently
-
addArrayOfBuffer
default Tuple addArrayOfBuffer(Buffer[] value)
Add an array ofBuffer
value at the end of the tuple.- Parameters:
value
- the value- Returns:
- a reference to this, so the API can be used fluently
-
addArrayOfUUID
default Tuple addArrayOfUUID(UUID[] value)
Add an array ofUUID
value at the end of the tuple.- Parameters:
value
- the value- Returns:
- a reference to this, so the API can be used fluently
-
addArrayOfBigDecimal
default Tuple addArrayOfBigDecimal(BigDecimal[] value)
Add an array ofBigDecimal
value at the end of the tuple.- Parameters:
value
- the value- Returns:
- a reference to this, so the API can be used fluently
-
get
default <T> T get(Class<T> type, int position)
Get the the at the specifiedposition
and the specifiedtype
.The type can be one of the types returned by the row (e.g
String.class
) or an array of the type (e.gString[].class
)).- Parameters:
type
- the expected value typeposition
- the value position- Returns:
- the value if the value is found or null.
-
size
int size()
- Returns:
- the tuple size
-
clear
void clear()
-
deepToString
default String deepToString()
- Returns:
- A String containing the
Object.toString()
value of each element, separated by a comma (,) character
-
-