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

io.tarantool.driver.mappers.TarantoolResultMapper 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.TarantoolResult;
import io.tarantool.driver.mappers.converters.ValueConverter;
import io.tarantool.driver.mappers.converters.ValueConverterWithInputTypeWrapper;
import org.msgpack.value.Value;
import org.msgpack.value.ValueType;

import java.util.List;

/**
 * Mapper from array of MessagePack values to {@link TarantoolResult} with specified inner structure
 *
 * @param  target tuple type
 * @author Alexey Kuzin
 */
public class TarantoolResultMapper extends AbstractResultMapper> {
    public TarantoolResultMapper(
        MessagePackValueMapper valueMapper,
        ValueConverter> resultConverter,
        Class> resultClass) {
        super(valueMapper, resultConverter, resultClass);
    }

    public TarantoolResultMapper(
        MessagePackValueMapper valueMapper,
        ValueConverter> resultConverter) {
        super(valueMapper, resultConverter);
    }

    /**
     * Basic constructor
     *
     * @param valueMapper     value mapper to be used for result rows
     * @param valueType       MessagePack source type
     * @param resultConverter MessagePack result array to TarantoolResult with inner specified structure
     * @param resultClass     tuple result class
     */
    public TarantoolResultMapper(
        MessagePackValueMapper valueMapper, ValueType valueType,
        ValueConverter> resultConverter,
        Class> resultClass) {
        super(valueMapper, valueType, resultConverter, resultClass);
    }

    public TarantoolResultMapper(
        MessagePackValueMapper valueMapper, ValueType valueType,
        ValueConverter> resultConverter) {
        super(valueMapper, valueType, resultConverter);
    }

    public TarantoolResultMapper(
        MessagePackValueMapper valueMapper, List>> converters,
        Class> resultClass) {
        super(valueMapper, converters, resultClass);
    }

    public TarantoolResultMapper(
        MessagePackValueMapper valueMapper, List>> converters) {
        super(valueMapper, converters);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy