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

io.tarantool.driver.mappers.CallResultMapper 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.CallResult;
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;

/**
 * Special tuple mapper for API function call results.
 * 

* The result is always an array since Lua return is a multi-return, and if the first value is * nil, the second non-null value is interpreted as an error object or error message. * * @param target tuple type * @param target result type * @author Alexey Kuzin * @author Sergey Volgin */ public class CallResultMapper> extends AbstractResultMapper { /** * Basic constructor * * @param valueMapper value mapper to be used for the multi-return result * @param resultConverter MessagePack result array to call result converter * @param resultClass tuple result class */ public CallResultMapper( MessagePackValueMapper valueMapper, ValueConverter resultConverter, Class resultClass) { super(valueMapper, resultConverter, resultClass); } public CallResultMapper( MessagePackValueMapper valueMapper, ValueConverter resultConverter) { super(valueMapper, resultConverter); } public CallResultMapper( MessagePackValueMapper valueMapper, ValueType valueType, ValueConverter resultConverter, Class resultClass) { super(valueMapper, valueType, resultConverter, resultClass); } public CallResultMapper( MessagePackValueMapper valueMapper, ValueType valueType, ValueConverter resultConverter) { super(valueMapper, valueType, resultConverter); } public CallResultMapper( MessagePackValueMapper valueMapper, List> converters, Class resultClass) { super(valueMapper, converters, resultClass); } public CallResultMapper( MessagePackValueMapper valueMapper, List> converters) { super(valueMapper, converters); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy