io.tarantool.driver.mappers.TarantoolResultMapper 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.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 extends Value, ? extends TarantoolResult> resultConverter,
Class extends TarantoolResult> resultClass) {
super(valueMapper, resultConverter, resultClass);
}
public TarantoolResultMapper(
MessagePackValueMapper valueMapper,
ValueConverter extends Value, ? extends TarantoolResult> 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 extends Value, ? extends TarantoolResult> resultConverter,
Class extends TarantoolResult> resultClass) {
super(valueMapper, valueType, resultConverter, resultClass);
}
public TarantoolResultMapper(
MessagePackValueMapper valueMapper, ValueType valueType,
ValueConverter extends Value, ? extends TarantoolResult> resultConverter) {
super(valueMapper, valueType, resultConverter);
}
public TarantoolResultMapper(
MessagePackValueMapper valueMapper, List>> converters,
Class extends TarantoolResult> resultClass) {
super(valueMapper, converters, resultClass);
}
public TarantoolResultMapper(
MessagePackValueMapper valueMapper, List>> converters) {
super(valueMapper, converters);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy