Package io.tarantool.driver.api
Interface TarantoolEvalOperations
-
- All Known Subinterfaces:
TarantoolClient<T,R>
- All Known Implementing Classes:
AbstractTarantoolClient
,ClusterTarantoolClient
,ClusterTarantoolTupleClient
,ProxyTarantoolClient
,ProxyTarantoolTupleClient
,RetryingTarantoolClient
,RetryingTarantoolTupleClient
public interface TarantoolEvalOperations
Aggregates all value operation variants
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CompletableFuture<List<?>>
eval(String expression)
Execute a Lua expression in the Tarantool instance.CompletableFuture<List<?>>
eval(String expression, MessagePackValueMapper resultMapper)
Execute a Lua expression in the Tarantool instance.CompletableFuture<List<?>>
eval(String expression, List<?> arguments)
Execute a Lua expression in the Tarantool instance.CompletableFuture<List<?>>
eval(String expression, List<?> arguments, MessagePackObjectMapper argumentsMapper, MessagePackValueMapper resultMapper)
Execute a Lua expression in the Tarantool instance.CompletableFuture<List<?>>
eval(String expression, List<?> arguments, MessagePackValueMapper resultMapper)
Execute a Lua expression in the Tarantool instance.
-
-
-
Method Detail
-
eval
CompletableFuture<List<?>> eval(String expression) throws TarantoolClientException
Execute a Lua expression in the Tarantool instance. If a result is expected, the expression must start with keywordreturn
. The value mapper specified in the client configuration will be used for converting the result values from MessagePack entities to objects.- Parameters:
expression
- lua expression, must not be null or empty- Returns:
- some result
- Throws:
TarantoolClientException
- if the client is not connected
-
eval
CompletableFuture<List<?>> eval(String expression, List<?> arguments) throws TarantoolClientException
Execute a Lua expression in the Tarantool instance. If a result is expected, the expression must start with keywordreturn
. The value mapper specified in the client configuration will be used for converting the result values from MessagePack entities to objects.- Parameters:
expression
- lua expression, must not be null or emptyarguments
- the list of function arguments. The object mapper specified in the client configuration will be used for arguments conversion to MessagePack entities- Returns:
- some result
- Throws:
TarantoolClientException
- if the client is not connected
-
eval
CompletableFuture<List<?>> eval(String expression, MessagePackValueMapper resultMapper) throws TarantoolClientException
Execute a Lua expression in the Tarantool instance. If a result is expected, the expression must start with keywordreturn
.- Parameters:
expression
- lua expression, must not be null or emptyresultMapper
- mapper for result value MessagePack entity-to-object conversion- Returns:
- some result
- Throws:
TarantoolClientException
- if the client is not connected
-
eval
CompletableFuture<List<?>> eval(String expression, List<?> arguments, MessagePackValueMapper resultMapper) throws TarantoolClientException
Execute a Lua expression in the Tarantool instance. If a result is expected, the expression must start with keywordreturn
.- Parameters:
expression
- lua expression, must not be null or emptyarguments
- the list of function arguments. The object mapper specified in the client configuration will be used for arguments conversion to MessagePack entitiesresultMapper
- mapper for result value MessagePack entity-to-object conversion- Returns:
- some result
- Throws:
TarantoolClientException
- if the client is not connected
-
eval
CompletableFuture<List<?>> eval(String expression, List<?> arguments, MessagePackObjectMapper argumentsMapper, MessagePackValueMapper resultMapper) throws TarantoolClientException
Execute a Lua expression in the Tarantool instance. If a result is expected, the expression must start with keywordreturn
.- Parameters:
expression
- lua expression, must not be null or emptyarguments
- the list of function argumentsargumentsMapper
- mapper for arguments object-to-MessagePack entity conversionresultMapper
- mapper for result value MessagePack entity-to-object conversion- Returns:
- some result
- Throws:
TarantoolClientException
- if the client is not connected
-
-