public interface TarantoolTuple extends Iterable<TarantoolField>, Packable
Modifier and Type | Method and Description |
---|---|
boolean |
canGetObject(int fieldPosition,
Class<?> objectClass)
Check if a tuple field exists and can be converted to the target value type
|
boolean |
canGetObject(String fieldName,
Class<?> objectClass)
Check if a tuple field exists and can be converted to the target value type
|
Boolean |
getBoolean(int fieldPosition)
Get the field value converted to
Boolean |
Boolean |
getBoolean(String fieldName)
Get the field value converted to
Boolean |
byte[] |
getByteArray(int fieldPosition)
Get the field value converted to
byte[] |
byte[] |
getByteArray(String fieldName)
Get the field value converted to
byte[] |
Character |
getCharacter(int fieldPosition)
Get the field value converted to
Character |
Character |
getCharacter(String fieldName)
Get the field value converted to
Character |
BigDecimal |
getDecimal(int fieldPosition)
Get the field value converted to
BigDecimal |
BigDecimal |
getDecimal(String fieldName)
Get the field value converted to
BigDecimal |
Double |
getDouble(int fieldPosition)
Get the field value converted to
Double |
Double |
getDouble(String fieldName)
Get the field value converted to
Double |
Optional<TarantoolField> |
getField(int fieldPosition)
Get a tuple field by its position
|
Optional<TarantoolField> |
getField(String fieldName)
Get a tuple field by its name
|
List<TarantoolField> |
getFields()
Get all tuple fields as list
|
Float |
getFloat(int fieldPosition)
Get the field value converted to
Float |
Float |
getFloat(String fieldName)
Get the field value converted to
Float |
Instant |
getInstant(int fieldPosition)
Get the field value converted to
Instant |
Instant |
getInstant(String fieldName)
Get the field value converted to
Instant |
Integer |
getInteger(int fieldPosition)
Get the field value converted to
Integer |
Integer |
getInteger(String fieldName)
Get the field value converted to
Integer |
Interval |
getInterval(int fieldPosition)
Get the field value converted to
Interval |
Interval |
getInterval(String fieldName)
Get the field value converted to
Interval |
List<?> |
getList(int fieldPosition)
Get the field value converted to
List |
List<?> |
getList(String fieldName)
Get the field value converted to
List |
Long |
getLong(int fieldPosition)
Get the field value converted to
Long |
Long |
getLong(String fieldName)
Get the field value converted to
Long |
Map<?,?> |
getMap(int fieldPosition)
Get the field value converted to
Map |
Map<?,?> |
getMap(String fieldName)
Get the field value converted to
Map |
Optional<?> |
getObject(int fieldPosition)
Get a tuple field value as a raw object
|
<O> Optional<O> |
getObject(int fieldPosition,
Class<O> objectClass)
Get a tuple field value by its position specifying the target value type
|
Optional<?> |
getObject(String fieldName)
Get a tuple field value as a raw object
|
<O> Optional<O> |
getObject(String fieldName,
Class<O> objectClass)
Get a tuple field value by its name specifying the target value type
|
String |
getString(int fieldPosition)
Get the field value converted to
String |
String |
getString(String fieldName)
Get the field value converted to
String |
UUID |
getUUID(int fieldPosition)
Get the field value converted to
UUID |
UUID |
getUUID(String fieldName)
Get the field value converted to
UUID |
boolean |
hasMetadata()
Check whether this tuple includes information about space format
|
void |
putObject(int fieldPosition,
Object value)
Set a tuple field value from an object by field position
|
void |
putObject(String fieldName,
Object value)
Set a tuple field value from an object by field name
|
void |
setField(int fieldPosition,
TarantoolField field)
Set a tuple field by field position
|
void |
setField(String fieldName,
TarantoolField field)
Set a tuple field by field name
|
int |
size()
Get the number of fields in this tuple
|
forEach, iterator, spliterator
toMessagePackValue
boolean hasMetadata()
Optional<TarantoolField> getField(int fieldPosition)
fieldPosition
- the field position from the tuple start, starting from 0Optional<TarantoolField> getField(String fieldName)
fieldName
- the field name in spaceList<TarantoolField> getFields()
<O> Optional<O> getObject(int fieldPosition, Class<O> objectClass)
O
- target value typefieldPosition
- field position from the tuple start, starting from 0objectClass
- target value type classboolean canGetObject(int fieldPosition, Class<?> objectClass)
fieldPosition
- field position from the tuple start, starting from 0objectClass
- target value type class<O> Optional<O> getObject(String fieldName, Class<O> objectClass)
O
- target value typefieldName
- field name, should not be nullobjectClass
- target value type classboolean canGetObject(String fieldName, Class<?> objectClass)
fieldName
- field name, should not be nullobjectClass
- target value type classOptional<?> getObject(int fieldPosition)
fieldPosition
- field position from the tuple start, starting from 0Optional<?> getObject(String fieldName)
fieldName
- field name, should not be nullint size()
void setField(int fieldPosition, TarantoolField field)
fieldPosition
- the field position from the tuple start, starting from 0field
- new fieldvoid setField(String fieldName, TarantoolField field)
fieldName
- the field name, must be not nullfield
- new fieldvoid putObject(int fieldPosition, Object value)
fieldPosition
- the field position from the tuple start, starting from 0value
- new field valuevoid putObject(String fieldName, Object value)
fieldName
- the field name, must not be nullvalue
- new field valuebyte[] getByteArray(int fieldPosition)
byte[]
fieldPosition
- the field position from the tuple start, starting from 0byte[] getByteArray(String fieldName)
byte[]
fieldName
- the field name, must not be nullBoolean getBoolean(int fieldPosition)
Boolean
fieldPosition
- the field position from the tuple start, starting from 0Boolean getBoolean(String fieldName)
Boolean
fieldName
- the field name, must not be nullDouble getDouble(int fieldPosition)
Double
fieldPosition
- the field position from the tuple start, starting from 0Double getDouble(String fieldName)
Double
fieldName
- the field name, must not be nullFloat getFloat(int fieldPosition)
Float
fieldPosition
- the field position from the tuple start, starting from 0Float getFloat(String fieldName)
Float
fieldName
- the field name, must not be nullInteger getInteger(int fieldPosition)
Integer
fieldPosition
- the field position from the tuple start, starting from 0Integer getInteger(String fieldName)
Integer
fieldName
- the field name, must not be nullLong getLong(int fieldPosition)
Long
fieldPosition
- the field position from the tuple start, starting from 0Long getLong(String fieldName)
Long
fieldName
- the field name, must not be nullString getString(int fieldPosition)
String
fieldPosition
- the field position from the tuple start, starting from 0String getString(String fieldName)
String
fieldName
- the field name, must not be nullCharacter getCharacter(int fieldPosition)
Character
fieldPosition
- the field position from the tuple start, starting from 0Character getCharacter(String fieldName)
Character
fieldName
- the field name, must not be nullUUID getUUID(int fieldPosition)
UUID
fieldPosition
- the field position from the tuple start, starting from 0UUID getUUID(String fieldName)
UUID
fieldName
- the field name, must not be nullInstant getInstant(int fieldPosition)
Instant
fieldPosition
- the field position from the tuple start, starting from 0Instant getInstant(String fieldName)
Instant
fieldName
- the field name, must not be nullInterval getInterval(int fieldPosition)
Interval
fieldPosition
- the field position from the tuple start, starting from 0Interval getInterval(String fieldName)
Interval
fieldName
- the field name, must not be nullBigDecimal getDecimal(int fieldPosition)
BigDecimal
fieldPosition
- the field position from the tuple start, starting from 0BigDecimal getDecimal(String fieldName)
BigDecimal
fieldName
- the field name, must not be nullList<?> getList(int fieldPosition)
List
fieldPosition
- the field position from the tuple start, starting from 0List<?> getList(String fieldName)
List
fieldName
- the field name, must not be nullMap<?,?> getMap(int fieldPosition)
Map
fieldPosition
- the field position from the tuple start, starting from 0Copyright © 2025 Picodata. All rights reserved.