Class ElasticsearchSqlAsyncClient
java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchSqlAsyncClient>
co.elastic.clients.elasticsearch.sql.ElasticsearchSqlAsyncClient
public class ElasticsearchSqlAsyncClient extends ApiClient<ElasticsearchTransport,ElasticsearchSqlAsyncClient>
Client for the sql namespace.
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions -
Constructor Summary
Constructors Constructor Description ElasticsearchSqlAsyncClient(ElasticsearchTransport transport)ElasticsearchSqlAsyncClient(ElasticsearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and Type Method Description java.util.concurrent.CompletableFuture<ClearCursorResponse>clearCursor(ClearCursorRequest request)Clears the SQL cursorjava.util.concurrent.CompletableFuture<ClearCursorResponse>clearCursor(java.util.function.Function<ClearCursorRequest.Builder,ObjectBuilder<ClearCursorRequest>> fn)Clears the SQL cursorjava.util.concurrent.CompletableFuture<DeleteAsyncResponse>deleteAsync(DeleteAsyncRequest request)Deletes an async SQL search or a stored synchronous SQL search.java.util.concurrent.CompletableFuture<DeleteAsyncResponse>deleteAsync(java.util.function.Function<DeleteAsyncRequest.Builder,ObjectBuilder<DeleteAsyncRequest>> fn)Deletes an async SQL search or a stored synchronous SQL search.java.util.concurrent.CompletableFuture<GetAsyncResponse>getAsync(GetAsyncRequest request)Returns the current status and available results for an async SQL search or stored synchronous SQL searchjava.util.concurrent.CompletableFuture<GetAsyncResponse>getAsync(java.util.function.Function<GetAsyncRequest.Builder,ObjectBuilder<GetAsyncRequest>> fn)Returns the current status and available results for an async SQL search or stored synchronous SQL searchjava.util.concurrent.CompletableFuture<GetAsyncStatusResponse>getAsyncStatus(GetAsyncStatusRequest request)Returns the current status of an async SQL search or a stored synchronous SQL searchjava.util.concurrent.CompletableFuture<GetAsyncStatusResponse>getAsyncStatus(java.util.function.Function<GetAsyncStatusRequest.Builder,ObjectBuilder<GetAsyncStatusRequest>> fn)Returns the current status of an async SQL search or a stored synchronous SQL searchjava.util.concurrent.CompletableFuture<QueryResponse>query()Executes a SQL requestjava.util.concurrent.CompletableFuture<QueryResponse>query(QueryRequest request)Executes a SQL requestjava.util.concurrent.CompletableFuture<QueryResponse>query(java.util.function.Function<QueryRequest.Builder,ObjectBuilder<QueryRequest>> fn)Executes a SQL requestjava.util.concurrent.CompletableFuture<TranslateResponse>translate(TranslateRequest request)Translates SQL into Elasticsearch queriesjava.util.concurrent.CompletableFuture<TranslateResponse>translate(java.util.function.Function<TranslateRequest.Builder,ObjectBuilder<TranslateRequest>> fn)Translates SQL into Elasticsearch queriesElasticsearchSqlAsyncClientwithTransportOptions(TransportOptions transportOptions)Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_transport, _transportOptions, getDeserializerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ElasticsearchSqlAsyncClient
-
ElasticsearchSqlAsyncClient
public ElasticsearchSqlAsyncClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
public ElasticsearchSqlAsyncClient withTransportOptions(@Nullable TransportOptions transportOptions)Description copied from class:ApiClientCreates a new client with some request options- Specified by:
withTransportOptionsin classApiClient<ElasticsearchTransport,ElasticsearchSqlAsyncClient>
-
clearCursor
public java.util.concurrent.CompletableFuture<ClearCursorResponse> clearCursor(ClearCursorRequest request)Clears the SQL cursor- See Also:
- Documentation on elastic.co
-
clearCursor
public final java.util.concurrent.CompletableFuture<ClearCursorResponse> clearCursor(java.util.function.Function<ClearCursorRequest.Builder,ObjectBuilder<ClearCursorRequest>> fn)Clears the SQL cursor- Parameters:
fn- a function that initializes a builder to create theClearCursorRequest- See Also:
- Documentation on elastic.co
-
deleteAsync
public java.util.concurrent.CompletableFuture<DeleteAsyncResponse> deleteAsync(DeleteAsyncRequest request)Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it.- See Also:
- Documentation on elastic.co
-
deleteAsync
public final java.util.concurrent.CompletableFuture<DeleteAsyncResponse> deleteAsync(java.util.function.Function<DeleteAsyncRequest.Builder,ObjectBuilder<DeleteAsyncRequest>> fn)Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it.- Parameters:
fn- a function that initializes a builder to create theDeleteAsyncRequest- See Also:
- Documentation on elastic.co
-
getAsync
Returns the current status and available results for an async SQL search or stored synchronous SQL search- See Also:
- Documentation on elastic.co
-
getAsync
public final java.util.concurrent.CompletableFuture<GetAsyncResponse> getAsync(java.util.function.Function<GetAsyncRequest.Builder,ObjectBuilder<GetAsyncRequest>> fn)Returns the current status and available results for an async SQL search or stored synchronous SQL search- Parameters:
fn- a function that initializes a builder to create theGetAsyncRequest- See Also:
- Documentation on elastic.co
-
getAsyncStatus
public java.util.concurrent.CompletableFuture<GetAsyncStatusResponse> getAsyncStatus(GetAsyncStatusRequest request)Returns the current status of an async SQL search or a stored synchronous SQL search- See Also:
- Documentation on elastic.co
-
getAsyncStatus
public final java.util.concurrent.CompletableFuture<GetAsyncStatusResponse> getAsyncStatus(java.util.function.Function<GetAsyncStatusRequest.Builder,ObjectBuilder<GetAsyncStatusRequest>> fn)Returns the current status of an async SQL search or a stored synchronous SQL search- Parameters:
fn- a function that initializes a builder to create theGetAsyncStatusRequest- See Also:
- Documentation on elastic.co
-
query
Executes a SQL request- See Also:
- Documentation on elastic.co
-
query
public final java.util.concurrent.CompletableFuture<QueryResponse> query(java.util.function.Function<QueryRequest.Builder,ObjectBuilder<QueryRequest>> fn)Executes a SQL request- Parameters:
fn- a function that initializes a builder to create theQueryRequest- See Also:
- Documentation on elastic.co
-
query
Executes a SQL request- See Also:
- Documentation on elastic.co
-
translate
public java.util.concurrent.CompletableFuture<TranslateResponse> translate(TranslateRequest request)Translates SQL into Elasticsearch queries- See Also:
- Documentation on elastic.co
-
translate
public final java.util.concurrent.CompletableFuture<TranslateResponse> translate(java.util.function.Function<TranslateRequest.Builder,ObjectBuilder<TranslateRequest>> fn)Translates SQL into Elasticsearch queries- Parameters:
fn- a function that initializes a builder to create theTranslateRequest- See Also:
- Documentation on elastic.co
-