Class ElasticsearchEnrichAsyncClient
java.lang.Object
co.elastic.clients.base.ApiClient
co.elastic.clients.elasticsearch.enrich.ElasticsearchEnrichAsyncClient
public class ElasticsearchEnrichAsyncClient extends ApiClient
Client for the enrich namespace.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ElasticsearchEnrichAsyncClient(Transport transport) -
Method Summary
Modifier and Type Method Description java.util.concurrent.CompletableFuture<DeletePolicyResponse>deletePolicy(DeletePolicyRequest request)Deletes an existing enrich policy and its enrich index.java.util.concurrent.CompletableFuture<DeletePolicyResponse>deletePolicy(java.util.function.Function<DeletePolicyRequest.Builder,ObjectBuilder<DeletePolicyRequest>> fn)Deletes an existing enrich policy and its enrich index.java.util.concurrent.CompletableFuture<ExecutePolicyResponse>executePolicy(ExecutePolicyRequest request)Creates the enrich index for an existing enrich policy.java.util.concurrent.CompletableFuture<ExecutePolicyResponse>executePolicy(java.util.function.Function<ExecutePolicyRequest.Builder,ObjectBuilder<ExecutePolicyRequest>> fn)Creates the enrich index for an existing enrich policy.java.util.concurrent.CompletableFuture<GetPolicyResponse>getPolicy(GetPolicyRequest request)Gets information about an enrich policy.java.util.concurrent.CompletableFuture<GetPolicyResponse>getPolicy(java.util.function.Function<GetPolicyRequest.Builder,ObjectBuilder<GetPolicyRequest>> fn)Gets information about an enrich policy.java.util.concurrent.CompletableFuture<PutPolicyResponse>putPolicy(PutPolicyRequest request)Creates a new enrich policy.java.util.concurrent.CompletableFuture<PutPolicyResponse>putPolicy(java.util.function.Function<PutPolicyRequest.Builder,ObjectBuilder<PutPolicyRequest>> fn)Creates a new enrich policy.java.util.concurrent.CompletableFuture<StatsResponse>stats()Gets enrich coordinator statistics and information about enrich policies that are currently executing.Methods inherited from class co.elastic.clients.base.ApiClient
_transport, getDeserializerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ElasticsearchEnrichAsyncClient
-
-
Method Details
-
deletePolicy
public java.util.concurrent.CompletableFuture<DeletePolicyResponse> deletePolicy(DeletePolicyRequest request) throws java.io.IOExceptionDeletes an existing enrich policy and its enrich index.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
deletePolicy
public final java.util.concurrent.CompletableFuture<DeletePolicyResponse> deletePolicy(java.util.function.Function<DeletePolicyRequest.Builder,ObjectBuilder<DeletePolicyRequest>> fn) throws java.io.IOExceptionDeletes an existing enrich policy and its enrich index.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
executePolicy
public java.util.concurrent.CompletableFuture<ExecutePolicyResponse> executePolicy(ExecutePolicyRequest request) throws java.io.IOExceptionCreates the enrich index for an existing enrich policy.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
executePolicy
public final java.util.concurrent.CompletableFuture<ExecutePolicyResponse> executePolicy(java.util.function.Function<ExecutePolicyRequest.Builder,ObjectBuilder<ExecutePolicyRequest>> fn) throws java.io.IOExceptionCreates the enrich index for an existing enrich policy.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
getPolicy
public java.util.concurrent.CompletableFuture<GetPolicyResponse> getPolicy(GetPolicyRequest request) throws java.io.IOExceptionGets information about an enrich policy.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
getPolicy
public final java.util.concurrent.CompletableFuture<GetPolicyResponse> getPolicy(java.util.function.Function<GetPolicyRequest.Builder,ObjectBuilder<GetPolicyRequest>> fn) throws java.io.IOExceptionGets information about an enrich policy.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
putPolicy
public java.util.concurrent.CompletableFuture<PutPolicyResponse> putPolicy(PutPolicyRequest request) throws java.io.IOExceptionCreates a new enrich policy.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
putPolicy
public final java.util.concurrent.CompletableFuture<PutPolicyResponse> putPolicy(java.util.function.Function<PutPolicyRequest.Builder,ObjectBuilder<PutPolicyRequest>> fn) throws java.io.IOExceptionCreates a new enrich policy.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
stats
Gets enrich coordinator statistics and information about enrich policies that are currently executing.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-