public static interface ResultMapperFactoryFactory.Builder
Modifier and Type | Method and Description |
---|---|
CallResultMapper |
buildCallResultMapper() |
CallResultMapper |
buildCallResultMapper(MessagePackMapper valueMapper) |
<T> CallResultMapper<T,SingleValueCallResult<T>> |
buildSingleValueResultMapper(MessagePackValueMapper valueMapper,
Class<T> classResult) |
ResultMapperFactoryFactory.Builder |
withArrayValueToTarantoolTupleResultConverter()
Add converter parses result from a list of tuples.
|
ResultMapperFactoryFactory.Builder |
withArrayValueToTarantoolTupleResultConverter(MessagePackMapper messagePackMapper)
Add converter parses result from a list of tuples.
|
ResultMapperFactoryFactory.Builder |
withRowsMetadataToTarantoolTupleResultConverter()
Add converter parses result from a map with list of tuples and metadata.
|
ResultMapperFactoryFactory.Builder |
withRowsMetadataToTarantoolTupleResultConverter(MessagePackMapper messagePackMapper)
Add converter parses result from a map with list of tuples and metadata.
|
ResultMapperFactoryFactory.Builder |
withSingleValueConverter()
Add a converter for mapping stored Lua function call results to
SingleValueCallResult
input: [x, y, ...], MessagePack array from a Lua function multi-return response
where x, y are some MessagePack values. |
ResultMapperFactoryFactory.Builder |
withSingleValueConverter(MessagePackValueMapper messagePackMapper)
Add a converter for mapping stored Lua function call results to
SingleValueCallResult
input: [x, y, ...], MessagePack array from a Lua function multi-return response
where x, y are some MessagePack values. |
ResultMapperFactoryFactory.Builder withSingleValueConverter()
SingleValueCallResult
input: [x, y, ...], MessagePack array from a Lua function multi-return response
where x, y
are some MessagePack values. x
is interpreted as a stored Lua function
result and y
may be interpreted as a stored Lua function error if it is not empty and there are
no more arguments after y
.
mapper result: some Java type converted from the value of x
according to the mapper, passed as a
parameter to builder constructor for parsing the result contents.
Converter result and its inner contents depend on the parameters or the passed converters.
ResultMapperFactoryFactory.Builder withSingleValueConverter(MessagePackValueMapper messagePackMapper)
SingleValueCallResult
input: [x, y, ...], MessagePack array from a Lua function multi-return response
where x, y
are some MessagePack values. x
is interpreted as a stored Lua function
result and y
may be interpreted as a stored Lua function error if it is not empty and there are
no more arguments after y
.
mapper result: some Java type converted from the value of x
according to the mapper, passed as a
parameter to this one for parsing the result contents.
Converter result and its inner contents depend on the parameters or the passed converters.
messagePackMapper
- to parse fieldsResultMapperFactoryFactory.Builder withArrayValueToTarantoolTupleResultConverter()
TarantoolTuple
inside.
The IProto method results by default contain lists of tuples.
This converter can be used at the inner level by other mapper factories that are handling higher-level
containers.
input: array of tuples with MessagePack values inside ([t1, t2, ...])
converter result: TarantoolResult<TarantoolTuple>
For example, it can be used to parse result from IPROTO_SELECT.
fields result: some Java type converted from the value of x
according to the mapper, passed as a
parameter to builder constructor for parsing the result contents.
TarantoolResult<TarantoolTuple>
ResultMapperFactoryFactory.Builder withArrayValueToTarantoolTupleResultConverter(MessagePackMapper messagePackMapper)
TarantoolTuple
inside.
The IProto method results by default contain lists of tuples.
This converter can be used at the inner level by other mapper factories that are handling higher-level
containers.
input: array of tuples with MessagePack values inside ([t1, t2, ...])
converter result: TarantoolResult<TarantoolTuple>
For example, it can be used to parse result from IPROTO_SELECT
fields result: some Java type converted from the value of x
according to the mapper, passed as a
parameter to this one for parsing the result contents.
messagePackMapper
- to parse fieldsTarantoolResult<TarantoolTuple>
ResultMapperFactoryFactory.Builder withRowsMetadataToTarantoolTupleResultConverter()
TarantoolTuple
inside.
The crud method results by default contain map with list of tuples and metadata.
This converter can be used at the inner level by other mapper factories that are handling higher-level
containers.
input: map with metadata and array of tuples with MessagePack values inside ([t1, t2, ...])
fields result: some Java type converted from the value of x
according to the mapper, passed as a
parameter to builder constructor for parsing the result contents.
TarantoolResult<TarantoolTuple>
ResultMapperFactoryFactory.Builder withRowsMetadataToTarantoolTupleResultConverter(MessagePackMapper messagePackMapper)
TarantoolTuple
inside.
The crud method results by default contain map with list of tuples and metadata.
This converter can be used at the inner level by other mapper factories that are handling higher-level
containers.
input: map with metadata and array of tuples with MessagePack values inside ([t1, t2, ...])
fields result: some Java type converted from the value of x
according to the mapper, passed as a
parameter to this one for parsing the result contents.
messagePackMapper
- to parse fieldsTarantoolResult<TarantoolTuple>
CallResultMapper buildCallResultMapper()
CallResultMapper buildCallResultMapper(MessagePackMapper valueMapper)
<T> CallResultMapper<T,SingleValueCallResult<T>> buildSingleValueResultMapper(MessagePackValueMapper valueMapper, Class<T> classResult)
Copyright © 2025 Picodata. All rights reserved.