Class ReactiveElasticsearchSqlClient
java.lang.Object
co.elastic.clients.ApiClient<co.elastic.clients.transport.ElasticsearchTransport, ReactiveElasticsearchSqlClient>
org.springframework.data.elasticsearch.client.elc.ReactiveElasticsearchSqlClient
- All Implemented Interfaces:
Closeable, AutoCloseable
public class ReactiveElasticsearchSqlClient
extends co.elastic.clients.ApiClient<co.elastic.clients.transport.ElasticsearchTransport, ReactiveElasticsearchSqlClient>
Reactive version of
ElasticsearchSqlClient.- Since:
- 5.4
- Author:
- Aouichaoui Youssef
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions -
Constructor Summary
ConstructorsConstructorDescriptionReactiveElasticsearchSqlClient(co.elastic.clients.transport.ElasticsearchTransport transport, @Nullable co.elastic.clients.transport.TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptionMono<co.elastic.clients.elasticsearch.sql.QueryResponse> query()Executes a SQL request.Mono<co.elastic.clients.elasticsearch.sql.QueryResponse> query(co.elastic.clients.elasticsearch.sql.QueryRequest query) Executes a SQL request.final Mono<co.elastic.clients.elasticsearch.sql.QueryResponse> query(Function<co.elastic.clients.elasticsearch.sql.QueryRequest.Builder, co.elastic.clients.util.ObjectBuilder<co.elastic.clients.elasticsearch.sql.QueryRequest>> fn) Executes a SQL requestwithTransportOptions(@Nullable co.elastic.clients.transport.TransportOptions transportOptions) Methods inherited from class co.elastic.clients.ApiClient
_jsonpMapper, _transport, _transportOptions, close, getDeserializer, withTransportOptions
-
Constructor Details
-
ReactiveElasticsearchSqlClient
public ReactiveElasticsearchSqlClient(co.elastic.clients.transport.ElasticsearchTransport transport, @Nullable co.elastic.clients.transport.TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
public ReactiveElasticsearchSqlClient withTransportOptions(@Nullable co.elastic.clients.transport.TransportOptions transportOptions) - Specified by:
withTransportOptionsin classco.elastic.clients.ApiClient<co.elastic.clients.transport.ElasticsearchTransport, ReactiveElasticsearchSqlClient>
-
query
public final Mono<co.elastic.clients.elasticsearch.sql.QueryResponse> query(Function<co.elastic.clients.elasticsearch.sql.QueryRequest.Builder, co.elastic.clients.util.ObjectBuilder<co.elastic.clients.elasticsearch.sql.QueryRequest>> fn) throws IOException, co.elastic.clients.elasticsearch._types.ElasticsearchException Executes a SQL request- Parameters:
fn- a function that initializes a builder to create theQueryRequest.- Throws:
IOExceptionco.elastic.clients.elasticsearch._types.ElasticsearchException
-
query
public Mono<co.elastic.clients.elasticsearch.sql.QueryResponse> query(co.elastic.clients.elasticsearch.sql.QueryRequest query) Executes a SQL request. -
query
Executes a SQL request.
-