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, spliteratortoMessagePackValueboolean 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)
BooleanfieldPosition - the field position from the tuple start, starting from 0Boolean getBoolean(String fieldName)
BooleanfieldName - the field name, must not be nullDouble getDouble(int fieldPosition)
DoublefieldPosition - the field position from the tuple start, starting from 0Double getDouble(String fieldName)
DoublefieldName - the field name, must not be nullFloat getFloat(int fieldPosition)
FloatfieldPosition - the field position from the tuple start, starting from 0Float getFloat(String fieldName)
FloatfieldName - the field name, must not be nullInteger getInteger(int fieldPosition)
IntegerfieldPosition - the field position from the tuple start, starting from 0Integer getInteger(String fieldName)
IntegerfieldName - the field name, must not be nullLong getLong(int fieldPosition)
LongfieldPosition - the field position from the tuple start, starting from 0Long getLong(String fieldName)
LongfieldName - the field name, must not be nullString getString(int fieldPosition)
StringfieldPosition - the field position from the tuple start, starting from 0String getString(String fieldName)
StringfieldName - the field name, must not be nullCharacter getCharacter(int fieldPosition)
CharacterfieldPosition - the field position from the tuple start, starting from 0Character getCharacter(String fieldName)
CharacterfieldName - the field name, must not be nullUUID getUUID(int fieldPosition)
UUIDfieldPosition - the field position from the tuple start, starting from 0UUID getUUID(String fieldName)
UUIDfieldName - the field name, must not be nullInstant getInstant(int fieldPosition)
InstantfieldPosition - the field position from the tuple start, starting from 0Instant getInstant(String fieldName)
InstantfieldName - the field name, must not be nullInterval getInterval(int fieldPosition)
IntervalfieldPosition - the field position from the tuple start, starting from 0Interval getInterval(String fieldName)
IntervalfieldName - the field name, must not be nullBigDecimal getDecimal(int fieldPosition)
BigDecimalfieldPosition - the field position from the tuple start, starting from 0BigDecimal getDecimal(String fieldName)
BigDecimalfieldName - the field name, must not be nullList<?> getList(int fieldPosition)
ListfieldPosition - the field position from the tuple start, starting from 0List<?> getList(String fieldName)
ListfieldName - the field name, must not be nullMap<?,?> getMap(int fieldPosition)
MapfieldPosition - the field position from the tuple start, starting from 0Copyright © 2025 Picodata. All rights reserved.