Interface TarantoolEvalOperations

    • 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 keyword return. 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 keyword return. 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
        arguments - 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 keyword return.
        Parameters:
        expression - lua expression, must not be null or empty
        resultMapper - 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 keyword return.
        Parameters:
        expression - lua expression, must not be null or empty
        arguments - the list of function arguments. The object mapper specified in the client configuration will be used for arguments conversion to MessagePack entities
        resultMapper - 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 keyword return.
        Parameters:
        expression - lua expression, must not be null or empty
        arguments - the list of function arguments
        argumentsMapper - mapper for arguments object-to-MessagePack entity conversion
        resultMapper - mapper for result value MessagePack entity-to-object conversion
        Returns:
        some result
        Throws:
        TarantoolClientException - if the client is not connected