Package io.tarantool.driver.api.tuple
Interface TarantoolField
-
- All Superinterfaces:
Packable
,Serializable
- All Known Implementing Classes:
TarantoolFieldImpl
,TarantoolNullField
public interface TarantoolField extends Packable
Represents individual field in a tuple
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
canConvertValue(Class<?> targetClass, MessagePackValueMapper mapper)
Check whether the underlying field value can be converted to an object using the given MessagePack-to-object mapperObject
getValue(MessagePackValueMapper mapper)
Get the field value, possibly converted to some Java type<O> O
getValue(Class<O> targetClass, MessagePackValueMapper mapper)
Get the field value converted to the target type-
Methods inherited from interface io.tarantool.driver.protocol.Packable
toMessagePackValue
-
-
-
-
Method Detail
-
getValue
<O> O getValue(Class<O> targetClass, MessagePackValueMapper mapper)
Get the field value converted to the target type- Type Parameters:
O
- the target type- Parameters:
targetClass
- the target type classmapper
- mapper for converting MessagePack entity to Java object- Returns:
- value
-
getValue
Object getValue(MessagePackValueMapper mapper)
Get the field value, possibly converted to some Java type- Parameters:
mapper
- mapper for converting MessagePack entity to Java object- Returns:
- value
-
canConvertValue
boolean canConvertValue(Class<?> targetClass, MessagePackValueMapper mapper)
Check whether the underlying field value can be converted to an object using the given MessagePack-to-object mapper- Parameters:
targetClass
- the target type classmapper
- mapper for converting MessagePack entity to Java object- Returns:
- value
-
-