Class ReactiveElasticsearchSqlClient
java.lang.Object
co.elastic.clients.ApiClient<co.elastic.clients.transport.ElasticsearchTransport,ReactiveElasticsearchSqlClient>
org.springframework.data.elasticsearch.client.elc.ReactiveElasticsearchSqlClient
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
ConstructorDescriptionReactiveElasticsearchSqlClient
(co.elastic.clients.transport.ElasticsearchTransport transport, co.elastic.clients.transport.TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<co.elastic.clients.elasticsearch.sql.QueryResponse>
query()
Executes a SQL request.reactor.core.publisher.Mono<co.elastic.clients.elasticsearch.sql.QueryResponse>
query
(co.elastic.clients.elasticsearch.sql.QueryRequest query) Executes a SQL request.final reactor.core.publisher.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
(co.elastic.clients.transport.TransportOptions transportOptions) Methods inherited from class co.elastic.clients.ApiClient
_jsonpMapper, _transport, _transportOptions, 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:
withTransportOptions
in classco.elastic.clients.ApiClient<co.elastic.clients.transport.ElasticsearchTransport,
ReactiveElasticsearchSqlClient>
-
query
public final reactor.core.publisher.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.ElasticsearchExceptionExecutes a SQL request- Parameters:
fn
- a function that initializes a builder to create theQueryRequest
.- Throws:
IOException
co.elastic.clients.elasticsearch._types.ElasticsearchException
-
query
public reactor.core.publisher.Mono<co.elastic.clients.elasticsearch.sql.QueryResponse> query(co.elastic.clients.elasticsearch.sql.QueryRequest query) Executes a SQL request. -
query
public reactor.core.publisher.Mono<co.elastic.clients.elasticsearch.sql.QueryResponse> query()Executes a SQL request.
-