Class ElasticsearchEnrichClient
java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchEnrichClient>
co.elastic.clients.elasticsearch.enrich.ElasticsearchEnrichClient
public class ElasticsearchEnrichClient
extends ApiClient<ElasticsearchTransport,ElasticsearchEnrichClient>
Client for the enrich namespace.
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions
-
Constructor Summary
ConstructorsConstructorDescriptionElasticsearchEnrichClient
(ElasticsearchTransport transport) ElasticsearchEnrichClient
(ElasticsearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptiondeletePolicy
(DeletePolicyRequest request) Deletes an existing enrich policy and its enrich index.final DeletePolicyResponse
Deletes an existing enrich policy and its enrich index.executePolicy
(ExecutePolicyRequest request) Creates the enrich index for an existing enrich policy.final ExecutePolicyResponse
Creates the enrich index for an existing enrich policy.Returns information about an enrich policy.getPolicy
(GetPolicyRequest request) Returns information about an enrich policy.final GetPolicyResponse
Returns information about an enrich policy.putPolicy
(PutPolicyRequest request) Creates an enrich policy.final PutPolicyResponse
Creates an enrich policy.stats()
Returns enrich coordinator statistics and information about enrich policies that are currently executing.withTransportOptions
(TransportOptions transportOptions) Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_jsonpMapper, _transport, _transportOptions, getDeserializer, withTransportOptions
-
Constructor Details
-
ElasticsearchEnrichClient
-
ElasticsearchEnrichClient
public ElasticsearchEnrichClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
Description copied from class:ApiClient
Creates a new client with some request options- Specified by:
withTransportOptions
in classApiClient<ElasticsearchTransport,
ElasticsearchEnrichClient>
-
deletePolicy
public DeletePolicyResponse deletePolicy(DeletePolicyRequest request) throws IOException, ElasticsearchException Deletes an existing enrich policy and its enrich index.- Throws:
IOException
ElasticsearchException
- See Also:
-
deletePolicy
public final DeletePolicyResponse deletePolicy(Function<DeletePolicyRequest.Builder, ObjectBuilder<DeletePolicyRequest>> fn) throws IOException, ElasticsearchExceptionDeletes an existing enrich policy and its enrich index.- Parameters:
fn
- a function that initializes a builder to create theDeletePolicyRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
executePolicy
public ExecutePolicyResponse executePolicy(ExecutePolicyRequest request) throws IOException, ElasticsearchException Creates the enrich index for an existing enrich policy.- Throws:
IOException
ElasticsearchException
- See Also:
-
executePolicy
public final ExecutePolicyResponse executePolicy(Function<ExecutePolicyRequest.Builder, ObjectBuilder<ExecutePolicyRequest>> fn) throws IOException, ElasticsearchExceptionCreates the enrich index for an existing enrich policy.- Parameters:
fn
- a function that initializes a builder to create theExecutePolicyRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
getPolicy
public GetPolicyResponse getPolicy(GetPolicyRequest request) throws IOException, ElasticsearchException Returns information about an enrich policy.- Throws:
IOException
ElasticsearchException
- See Also:
-
getPolicy
public final GetPolicyResponse getPolicy(Function<GetPolicyRequest.Builder, ObjectBuilder<GetPolicyRequest>> fn) throws IOException, ElasticsearchExceptionReturns information about an enrich policy.- Parameters:
fn
- a function that initializes a builder to create theGetPolicyRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
getPolicy
Returns information about an enrich policy.- Throws:
IOException
ElasticsearchException
- See Also:
-
putPolicy
public PutPolicyResponse putPolicy(PutPolicyRequest request) throws IOException, ElasticsearchException Creates an enrich policy.- Throws:
IOException
ElasticsearchException
- See Also:
-
putPolicy
public final PutPolicyResponse putPolicy(Function<PutPolicyRequest.Builder, ObjectBuilder<PutPolicyRequest>> fn) throws IOException, ElasticsearchExceptionCreates an enrich policy.- Parameters:
fn
- a function that initializes a builder to create thePutPolicyRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
stats
Returns enrich coordinator statistics and information about enrich policies that are currently executing.- Throws:
IOException
ElasticsearchException
- See Also:
-