Class ElasticsearchEnrichClient
java.lang.Object
co.elastic.clients.base.ApiClient
co.elastic.clients.elasticsearch.enrich.ElasticsearchEnrichClient
public class ElasticsearchEnrichClient extends ApiClient
Client for the enrich namespace.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ElasticsearchEnrichClient(Transport transport) -
Method Summary
Modifier and Type Method Description DeletePolicyResponsedeletePolicy(DeletePolicyRequest request)Deletes an existing enrich policy and its enrich index.DeletePolicyResponsedeletePolicy(java.util.function.Function<DeletePolicyRequest.Builder,ObjectBuilder<DeletePolicyRequest>> fn)Deletes an existing enrich policy and its enrich index.ExecutePolicyResponseexecutePolicy(ExecutePolicyRequest request)Creates the enrich index for an existing enrich policy.ExecutePolicyResponseexecutePolicy(java.util.function.Function<ExecutePolicyRequest.Builder,ObjectBuilder<ExecutePolicyRequest>> fn)Creates the enrich index for an existing enrich policy.GetPolicyResponsegetPolicy(GetPolicyRequest request)Gets information about an enrich policy.GetPolicyResponsegetPolicy(java.util.function.Function<GetPolicyRequest.Builder,ObjectBuilder<GetPolicyRequest>> fn)Gets information about an enrich policy.PutPolicyResponseputPolicy(PutPolicyRequest request)Creates a new enrich policy.PutPolicyResponseputPolicy(java.util.function.Function<PutPolicyRequest.Builder,ObjectBuilder<PutPolicyRequest>> fn)Creates a new enrich policy.StatsResponsestats()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
-
ElasticsearchEnrichClient
-
-
Method Details
-
deletePolicy
Deletes an existing enrich policy and its enrich index.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
deletePolicy
public final 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 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 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
Gets information about an enrich policy.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
getPolicy
public final 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
Creates a new enrich policy.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
putPolicy
public final 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
-