Package io.tarantool.driver.mappers
Class MultiValueTarantoolResultMapperFactory<T>
- java.lang.Object
-
- io.tarantool.driver.mappers.AbstractResultMapperFactory<R,CallResultMapper<T,R>>
-
- io.tarantool.driver.mappers.TarantoolCallResultMapperFactory<R,MultiValueCallResult<T,R>>
-
- io.tarantool.driver.mappers.MultiValueResultMapperFactory<T,TarantoolResult<T>>
-
- io.tarantool.driver.mappers.MultiValueTarantoolResultMapperFactory<T>
-
- Direct Known Subclasses:
TarantoolTupleMultiResultMapperFactory
public class MultiValueTarantoolResultMapperFactory<T> extends MultiValueResultMapperFactory<T,TarantoolResult<T>>
Factory forCallResultMapper
instances used for handling Lua call multi-return result items as list of tuples- See Also:
TarantoolResult
-
-
Constructor Summary
Constructors Constructor Description MultiValueTarantoolResultMapperFactory()
Basic constructorMultiValueTarantoolResultMapperFactory(MessagePackMapper messagePackMapper)
Basic constructor with mapper
-
Method Summary
-
Methods inherited from class io.tarantool.driver.mappers.MultiValueResultMapperFactory
withMultiValueResultConverter, withMultiValueResultConverter, withMultiValueResultConverter, withMultiValueResultConverter
-
Methods inherited from class io.tarantool.driver.mappers.TarantoolCallResultMapperFactory
createMapper
-
Methods inherited from class io.tarantool.driver.mappers.AbstractResultMapperFactory
withConverter, withConverter
-
-
-
-
Constructor Detail
-
MultiValueTarantoolResultMapperFactory
public MultiValueTarantoolResultMapperFactory()
Basic constructor
-
MultiValueTarantoolResultMapperFactory
public MultiValueTarantoolResultMapperFactory(MessagePackMapper messagePackMapper)
Basic constructor with mapper- Parameters:
messagePackMapper
- MessagePack-to-entity mapper for result contents conversion
-
-
Method Detail
-
withTarantoolResultConverter
public CallResultMapper<TarantoolResult<T>,MultiValueCallResult<T,TarantoolResult<T>>> withTarantoolResultConverter(MessagePackValueMapper valueMapper, ValueConverter<org.msgpack.value.ArrayValue,T> valueConverter)
GetTarantoolResult
mapper for the Lua function call with single result- Parameters:
valueMapper
- MessagePack-to-entity mapper for result contents conversionvalueConverter
- the result content converter- Returns:
- call result mapper
-
withTarantoolResultConverter
public CallResultMapper<TarantoolResult<T>,MultiValueCallResult<T,TarantoolResult<T>>> withTarantoolResultConverter(ValueConverter<org.msgpack.value.ArrayValue,T> valueConverter)
GetTarantoolResult
mapper for the Lua function call with single result- Parameters:
valueConverter
- the result content converter- Returns:
- call result mapper
-
withTarantoolResultConverter
public CallResultMapper<TarantoolResult<T>,MultiValueCallResult<T,TarantoolResult<T>>> withTarantoolResultConverter(MessagePackValueMapper valueMapper, ValueConverter<org.msgpack.value.ArrayValue,T> valueConverter, Class<? extends MultiValueCallResult<T,TarantoolResult<T>>> resultClass)
GetTarantoolResult
mapper for the Lua function call with single result- Parameters:
valueMapper
- MessagePack-to-entity mapper for result contents conversionvalueConverter
- the result content converterresultClass
- full result type class- Returns:
- call result mapper
-
withTarantoolResultConverter
public CallResultMapper<TarantoolResult<T>,MultiValueCallResult<T,TarantoolResult<T>>> withTarantoolResultConverter(ValueConverter<org.msgpack.value.ArrayValue,T> valueConverter, Class<? extends MultiValueCallResult<T,TarantoolResult<T>>> resultClass)
GetTarantoolResult
mapper for the Lua function call with single result- Parameters:
valueConverter
- the result content converterresultClass
- full result type class- Returns:
- call result mapper
-
-