public interface TarantoolTupleResultMapperFactory
TarantoolResult<TarantoolTuple>
from various
structuresTarantoolResultMapper<TarantoolTuple> withArrayValueToTarantoolTupleResultConverter(MessagePackMapper messagePackMapper)
TarantoolTuple
inside.
The IProto method results by default contain lists of tuples.
This mapper 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, ...])
mapper result: TarantoolResult<TarantoolTuple>
Returned TarantoolResult doesn't store metadata, and you can't get field by field name
messagePackMapper
- MessagePack-to-entity converter for tuplesTarantoolResult<TarantoolTuple>
TarantoolResultMapper<TarantoolTuple> withArrayValueToTarantoolTupleResultConverter(MessagePackMapper messagePackMapper, TarantoolSpaceMetadata spaceMetadata)
TarantoolTuple
inside.
The IProto method results by default contain lists of tuples.
This mapper 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, ...])
mapper result: TarantoolResult<TarantoolTuple>
For example, it can be used to parse result from IPROTO_SELECT
messagePackMapper
- MessagePack-to-entity converter for tuplesspaceMetadata
- space metadata to parse values by their namesTarantoolResult<TarantoolTuple>
TarantoolResultMapper<TarantoolTuple> withRowsMetadataToTarantoolTupleResultConverter(MessagePackMapper messagePackMapper)
TarantoolTuple
inside.
The crud method results by default contain map with list of tuples and metadata.
This mapper 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, ...])
mapper result: TarantoolResult<TarantoolTuple>
Returned TarantoolResult doesn't store metadata, and you can't get field by field name
messagePackMapper
- MessagePack-to-entity converter for tuplesTarantoolResult<TarantoolTuple>
TarantoolResultMapper<TarantoolTuple> withRowsMetadataToTarantoolTupleResultConverter(MessagePackMapper messagePackMapper, TarantoolSpaceMetadata spaceMetadata)
TarantoolTuple
inside.
The crud method results by default contain map with list of tuples and metadata.
This mapper 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, ...])
mapper result: TarantoolResult<TarantoolTuple>
messagePackMapper
- MessagePack-to-entity converter for tuplesspaceMetadata
- space metadata to parse values by their namesTarantoolResult<TarantoolTuple>
CallResultMapper<TarantoolResult<TarantoolTuple>,SingleValueCallResult<TarantoolResult<TarantoolTuple>>> withSingleValueArrayToTarantoolTupleResultMapper(MessagePackMapper messagePackMapper, TarantoolSpaceMetadata spaceMetadata)
return result, err
with a list of tuples as a result.
For example, this form of the result is used for some return from lua function like box.space.select
input: [x, y, ...], MessagePack array from a Lua function multi-return response
where x
is a data structure with an array of tuples inside ([t1, t2, ...]) and y
can be interpreted as an error structure if it is not empty and there are no more arguments after
y
`
mapper result: converted value of x
to TarantoolResult<TarantoolTuple>
Mapper result and the inner contents depend on the parameters or the passed converters.
messagePackMapper
- MessagePack-to-entity converter for tuplesspaceMetadata
- space metadata to parse values by their namesCallResultMapper<TarantoolResult<TarantoolTuple>,SingleValueCallResult<TarantoolResult<TarantoolTuple>>> withSingleValueRowsMetadataToTarantoolTupleResultMapper(MessagePackMapper messagePackMapper, TarantoolSpaceMetadata spaceMetadata)
return result, err
with a list of tuples as a result.
For example, this form of the result is used for some return from lua function like crud.select
input: [x, y, ...], MessagePack array from a Lua function multi-return response
where x
map with metadata and array of tuples with MessagePack values inside ([t1, t2, ...])
mapper result: converted value of x
to TarantoolResult<TarantoolTuple>
messagePackMapper
- MessagePack-to-entity converter for tuplesspaceMetadata
- space metadata to parse values by their namesCallResultMapper<TarantoolResult<TarantoolTuple>,MultiValueCallResult<TarantoolTuple,TarantoolResult<TarantoolTuple>>> withMultiValueArrayToTarantoolTupleResultMapper(MessagePackMapper messagePackMapper, TarantoolSpaceMetadata spaceMetadata)
input: [x, y, z, ...], MessagePack array from a Lua function multi-return response
where x, y, z
are some MessagePack values, each one representing a Tarantool tuple
mapper result: TarantoolResult<TarantoolTuple>
converted from [x, y, z, ...]
Mapper result and its inner contents depend on the parameters or the passed converters.
messagePackMapper
- MessagePack-to-entity converter for tuplesspaceMetadata
- space metadata to parse values by their namesCopyright © 2025 Picodata. All rights reserved.