Class ElasticsearchEnrichClient
java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchEnrichClient>
co.elastic.clients.elasticsearch.enrich.ElasticsearchEnrichClient
- All Implemented Interfaces:
Closeable,AutoCloseable
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 DeletePolicyResponseDeletes an existing enrich policy and its enrich index.executePolicy(ExecutePolicyRequest request) Creates the enrich index for an existing enrich policy.final ExecutePolicyResponseCreates the enrich index for an existing enrich policy.Gets information about an enrich policy.getPolicy(GetPolicyRequest request) Gets information about an enrich policy.final GetPolicyResponseGets information about an enrich policy.putPolicy(PutPolicyRequest request) Creates a new enrich policy.final PutPolicyResponseCreates a new enrich policy.stats()Gets 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, close, getDeserializer, withTransportOptions
-
Constructor Details
-
ElasticsearchEnrichClient
-
ElasticsearchEnrichClient
public ElasticsearchEnrichClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
Description copied from class:ApiClientCreates a new client with some request options- Specified by:
withTransportOptionsin classApiClient<ElasticsearchTransport,ElasticsearchEnrichClient>
-
deletePolicy
public DeletePolicyResponse deletePolicy(DeletePolicyRequest request) throws IOException, ElasticsearchException Deletes an existing enrich policy and its enrich index.- Throws:
IOExceptionElasticsearchException- 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:
IOExceptionElasticsearchException- See Also:
-
executePolicy
public ExecutePolicyResponse executePolicy(ExecutePolicyRequest request) throws IOException, ElasticsearchException Creates the enrich index for an existing enrich policy.- Throws:
IOExceptionElasticsearchException- 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:
IOExceptionElasticsearchException- See Also:
-
getPolicy
public GetPolicyResponse getPolicy(GetPolicyRequest request) throws IOException, ElasticsearchException Gets information about an enrich policy.- Throws:
IOExceptionElasticsearchException- See Also:
-
getPolicy
public final GetPolicyResponse getPolicy(Function<GetPolicyRequest.Builder, ObjectBuilder<GetPolicyRequest>> fn) throws IOException, ElasticsearchExceptionGets information about an enrich policy.- Parameters:
fn- a function that initializes a builder to create theGetPolicyRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
getPolicy
Gets information about an enrich policy.- Throws:
IOExceptionElasticsearchException- See Also:
-
putPolicy
public PutPolicyResponse putPolicy(PutPolicyRequest request) throws IOException, ElasticsearchException Creates a new enrich policy.- Throws:
IOExceptionElasticsearchException- See Also:
-
putPolicy
public final PutPolicyResponse putPolicy(Function<PutPolicyRequest.Builder, ObjectBuilder<PutPolicyRequest>> fn) throws IOException, ElasticsearchExceptionCreates a new enrich policy.- Parameters:
fn- a function that initializes a builder to create thePutPolicyRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
stats
Gets enrich coordinator statistics and information about enrich policies that are currently executing.- Throws:
IOExceptionElasticsearchException- See Also:
-