Class ElasticsearchSqlAsyncClient
java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchSqlAsyncClient>
 
co.elastic.clients.elasticsearch.sql.ElasticsearchSqlAsyncClient
- All Implemented Interfaces:
- Closeable,- AutoCloseable
public class ElasticsearchSqlAsyncClient
extends ApiClient<ElasticsearchTransport,ElasticsearchSqlAsyncClient> 
Client for the sql namespace.
- 
Field SummaryFields inherited from class co.elastic.clients.ApiClienttransport, transportOptions
- 
Constructor SummaryConstructorsConstructorDescriptionElasticsearchSqlAsyncClient(ElasticsearchTransport transport, TransportOptions transportOptions) 
- 
Method SummaryModifier and TypeMethodDescriptionclearCursor(ClearCursorRequest request) Clear an SQL search cursor.Clear an SQL search cursor.deleteAsync(DeleteAsyncRequest request) Delete an async SQL search.Delete an async SQL search.getAsync(GetAsyncRequest request) Get async SQL search results.Get async SQL search results.getAsyncStatus(GetAsyncStatusRequest request) Get the async SQL search status.Get the async SQL search status.query()Get SQL search results.query(QueryRequest request) Get SQL search results.final CompletableFuture<QueryResponse>Get SQL search results.translate(TranslateRequest request) Translate SQL into Elasticsearch queries.Translate SQL into Elasticsearch queries.withTransportOptions(TransportOptions transportOptions) Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient_jsonpMapper, _transport, _transportOptions, close, getDeserializer, withTransportOptions
- 
Constructor Details- 
ElasticsearchSqlAsyncClient
- 
ElasticsearchSqlAsyncClientpublic ElasticsearchSqlAsyncClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions) 
 
- 
- 
Method Details- 
withTransportOptionspublic ElasticsearchSqlAsyncClient withTransportOptions(@Nullable TransportOptions transportOptions) Description copied from class:ApiClientCreates a new client with some request options- Specified by:
- withTransportOptionsin class- ApiClient<ElasticsearchTransport,- ElasticsearchSqlAsyncClient> 
 
- 
clearCursorClear an SQL search cursor.- See Also:
 
- 
clearCursorpublic final CompletableFuture<ClearCursorResponse> clearCursor(Function<ClearCursorRequest.Builder, ObjectBuilder<ClearCursorRequest>> fn) Clear an SQL search cursor.- Parameters:
- fn- a function that initializes a builder to create the- ClearCursorRequest
- See Also:
 
- 
deleteAsyncDelete an async SQL search. Delete an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it.If the Elasticsearch security features are enabled, only the following users can use this API to delete a search: - Users with the cancel_taskcluster privilege.
- The user who first submitted the search.
 - See Also:
 
- Users with the 
- 
deleteAsyncpublic final CompletableFuture<DeleteAsyncResponse> deleteAsync(Function<DeleteAsyncRequest.Builder, ObjectBuilder<DeleteAsyncRequest>> fn) Delete an async SQL search. Delete an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it.If the Elasticsearch security features are enabled, only the following users can use this API to delete a search: - Users with the cancel_taskcluster privilege.
- The user who first submitted the search.
 - Parameters:
- fn- a function that initializes a builder to create the- DeleteAsyncRequest
- See Also:
 
- Users with the 
- 
getAsyncGet async SQL search results. Get the current status and available results for an async SQL search or stored synchronous SQL search.If the Elasticsearch security features are enabled, only the user who first submitted the SQL search can retrieve the search using this API. - See Also:
 
- 
getAsyncpublic final CompletableFuture<GetAsyncResponse> getAsync(Function<GetAsyncRequest.Builder, ObjectBuilder<GetAsyncRequest>> fn) Get async SQL search results. Get the current status and available results for an async SQL search or stored synchronous SQL search.If the Elasticsearch security features are enabled, only the user who first submitted the SQL search can retrieve the search using this API. - Parameters:
- fn- a function that initializes a builder to create the- GetAsyncRequest
- See Also:
 
- 
getAsyncStatusGet the async SQL search status. Get the current status of an async SQL search or a stored synchronous SQL search.- See Also:
 
- 
getAsyncStatuspublic final CompletableFuture<GetAsyncStatusResponse> getAsyncStatus(Function<GetAsyncStatusRequest.Builder, ObjectBuilder<GetAsyncStatusRequest>> fn) Get the async SQL search status. Get the current status of an async SQL search or a stored synchronous SQL search.- Parameters:
- fn- a function that initializes a builder to create the- GetAsyncStatusRequest
- See Also:
 
- 
queryGet SQL search results. Run an SQL request.- See Also:
 
- 
querypublic final CompletableFuture<QueryResponse> query(Function<QueryRequest.Builder, ObjectBuilder<QueryRequest>> fn) Get SQL search results. Run an SQL request.- Parameters:
- fn- a function that initializes a builder to create the- QueryRequest
- See Also:
 
- 
queryGet SQL search results. Run an SQL request.- See Also:
 
- 
translateTranslate SQL into Elasticsearch queries. Translate an SQL search into a search API request containing Query DSL. It accepts the same request body parameters as the SQL search API, excludingcursor.- See Also:
 
- 
translatepublic final CompletableFuture<TranslateResponse> translate(Function<TranslateRequest.Builder, ObjectBuilder<TranslateRequest>> fn) Translate SQL into Elasticsearch queries. Translate an SQL search into a search API request containing Query DSL. It accepts the same request body parameters as the SQL search API, excludingcursor.- Parameters:
- fn- a function that initializes a builder to create the- TranslateRequest
- See Also:
 
 
-