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

io.tarantool.driver.api.TarantoolTupleFactory 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.api;

import io.tarantool.driver.api.tuple.TarantoolTuple;

import java.util.Collection;

/**
 * A factory for {@link TarantoolTuple} instances
 *
 * @author Alexey Kuzin
 */
public interface TarantoolTupleFactory {
    /**
     * Create an empty tuple
     * @return new tuple instance
     */
    TarantoolTuple create();

    /**
     * Create a tuple from an array of field values
     * @param fields array of field values, may contain null values
     * @return new tuple instance
     */
    TarantoolTuple create(Object... fields);

    /**
     * Create a tuple from a collection of field values
     * @param fields collection of field values, may contain null values
     * @return new tuple instance
     */
    TarantoolTuple create(Collection fields);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy