Package io.tarantool.driver.mappers
Class MultiValueResultMapperFactory<T,R extends List<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,R>
-
- Direct Known Subclasses:
MultiValueTarantoolResultMapperFactory
public class MultiValueResultMapperFactory<T,R extends List<T>> extends TarantoolCallResultMapperFactory<R,MultiValueCallResult<T,R>>
Factory forCallResultMapper
instances used for handling Lua call multi-return result which is treated as a list of values
-
-
Constructor Summary
Constructors Constructor Description MultiValueResultMapperFactory()
Basic constructorMultiValueResultMapperFactory(MessagePackMapper messagePackMapper)
Basic constructor with mapper
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CallResultMapper<R,MultiValueCallResult<T,R>>
withMultiValueResultConverter(ValueConverter<org.msgpack.value.ArrayValue,R> itemsConverter)
Get result mapper for the Lua function call with multi-return resultCallResultMapper<R,MultiValueCallResult<T,R>>
withMultiValueResultConverter(ValueConverter<org.msgpack.value.ArrayValue,R> itemsConverter, Class<? extends MultiValueCallResult<T,R>> resultClass)
Get result mapper for the Lua function call with multi-return resultCallResultMapper<R,MultiValueCallResult<T,R>>
withMultiValueResultConverter(MessagePackValueMapper valueMapper, ValueConverter<org.msgpack.value.ArrayValue,R> itemsConverter)
Get result mapper for the Lua function call with multi-return resultCallResultMapper<R,MultiValueCallResult<T,R>>
withMultiValueResultConverter(MessagePackValueMapper valueMapper, ValueConverter<org.msgpack.value.ArrayValue,R> itemsConverter, Class<? extends MultiValueCallResult<T,R>> resultClass)
Get result mapper for the Lua function call with multi-return result-
Methods inherited from class io.tarantool.driver.mappers.TarantoolCallResultMapperFactory
createMapper
-
Methods inherited from class io.tarantool.driver.mappers.AbstractResultMapperFactory
withConverter, withConverter
-
-
-
-
Constructor Detail
-
MultiValueResultMapperFactory
public MultiValueResultMapperFactory()
Basic constructor
-
MultiValueResultMapperFactory
public MultiValueResultMapperFactory(MessagePackMapper messagePackMapper)
Basic constructor with mapper- Parameters:
messagePackMapper
- MessagePack-to-entity mapper for result contents conversion
-
-
Method Detail
-
withMultiValueResultConverter
public CallResultMapper<R,MultiValueCallResult<T,R>> withMultiValueResultConverter(MessagePackValueMapper valueMapper, ValueConverter<org.msgpack.value.ArrayValue,R> itemsConverter)
Get result mapper for the Lua function call with multi-return result- Parameters:
valueMapper
- MessagePack-to-entity mapper for result contents conversionitemsConverter
- the result list converter- Returns:
- call result mapper
-
withMultiValueResultConverter
public CallResultMapper<R,MultiValueCallResult<T,R>> withMultiValueResultConverter(ValueConverter<org.msgpack.value.ArrayValue,R> itemsConverter)
Get result mapper for the Lua function call with multi-return result- Parameters:
itemsConverter
- the result list converter- Returns:
- call result mapper
-
withMultiValueResultConverter
public CallResultMapper<R,MultiValueCallResult<T,R>> withMultiValueResultConverter(MessagePackValueMapper valueMapper, ValueConverter<org.msgpack.value.ArrayValue,R> itemsConverter, Class<? extends MultiValueCallResult<T,R>> resultClass)
Get result mapper for the Lua function call with multi-return result- Parameters:
valueMapper
- MessagePack-to-entity mapper for result contents conversionitemsConverter
- result list converterresultClass
- full result type class- Returns:
- call result mapper
-
withMultiValueResultConverter
public CallResultMapper<R,MultiValueCallResult<T,R>> withMultiValueResultConverter(ValueConverter<org.msgpack.value.ArrayValue,R> itemsConverter, Class<? extends MultiValueCallResult<T,R>> resultClass)
Get result mapper for the Lua function call with multi-return result- Parameters:
itemsConverter
- result list converterresultClass
- full result type class- Returns:
- call result mapper
-
-