
io.tarantool.driver.mappers.TarantoolSimpleResultMapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cartridge-driver Show documentation
Show all versions of cartridge-driver Show documentation
Tarantool Cartridge driver for Tarantool versions 1.10+ based on Netty framework
package io.tarantool.driver.mappers;
import io.tarantool.driver.api.TarantoolResultImpl;
import org.msgpack.value.ArrayValue;
/**
* Mapper from array of MessagePack tuples to TarantoolResult
*
* @param target tuple type
* @author Alexey Kuzin
*/
public class TarantoolSimpleResultMapper extends AbstractTarantoolResultMapper {
private MessagePackValueMapper valueMapper;
/**
* Basic constructor
*
* @param valueMapper value mapper to be used for tuple fields
* @param tupleConverter MessagePack entity to tuple converter
*/
public TarantoolSimpleResultMapper(MessagePackValueMapper valueMapper,
ValueConverter tupleConverter) {
super(valueMapper, v -> new TarantoolResultImpl<>(v, tupleConverter));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy