All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.tarantool.driver.mappers.TarantoolSimpleResultMapper Maven / Gradle / Ivy

Go to download

Tarantool Cartridge driver for Tarantool versions 1.10+ based on Netty framework

There is a newer version: 0.14.0
Show newest version
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 - 2024 Weber Informatics LLC | Privacy Policy