Class ElasticsearchEnrichAsyncClient
java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchEnrichAsyncClient>
co.elastic.clients.elasticsearch.enrich.ElasticsearchEnrichAsyncClient
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class ElasticsearchEnrichAsyncClient
extends ApiClient<ElasticsearchTransport,ElasticsearchEnrichAsyncClient>
Client for the enrich namespace.
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions
-
Constructor Summary
ConstructorsConstructorDescriptionElasticsearchEnrichAsyncClient
(ElasticsearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptiondeletePolicy
(DeletePolicyRequest request) Delete an enrich policy.Delete an enrich policy.executePolicy
(ExecutePolicyRequest request) Run an enrich policy.Run an enrich policy.Get an enrich policy.getPolicy
(GetPolicyRequest request) Get an enrich policy.Get an enrich policy.putPolicy
(PutPolicyRequest request) Create an enrich policy.Create an enrich policy.stats()
Get enrich stats.stats
(EnrichStatsRequest request) Get enrich stats.Get enrich stats.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
-
ElasticsearchEnrichAsyncClient
-
ElasticsearchEnrichAsyncClient
public ElasticsearchEnrichAsyncClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
public ElasticsearchEnrichAsyncClient withTransportOptions(@Nullable TransportOptions transportOptions) Description copied from class:ApiClient
Creates a new client with some request options- Specified by:
withTransportOptions
in classApiClient<ElasticsearchTransport,
ElasticsearchEnrichAsyncClient>
-
deletePolicy
Delete an enrich policy. Deletes an existing enrich policy and its enrich index.- See Also:
-
deletePolicy
public final CompletableFuture<DeletePolicyResponse> deletePolicy(Function<DeletePolicyRequest.Builder, ObjectBuilder<DeletePolicyRequest>> fn) Delete an enrich policy. Deletes an existing enrich policy and its enrich index.- Parameters:
fn
- a function that initializes a builder to create theDeletePolicyRequest
- See Also:
-
executePolicy
Run an enrich policy. Create the enrich index for an existing enrich policy.- See Also:
-
executePolicy
public final CompletableFuture<ExecutePolicyResponse> executePolicy(Function<ExecutePolicyRequest.Builder, ObjectBuilder<ExecutePolicyRequest>> fn) Run an enrich policy. Create the enrich index for an existing enrich policy.- Parameters:
fn
- a function that initializes a builder to create theExecutePolicyRequest
- See Also:
-
getPolicy
Get an enrich policy. Returns information about an enrich policy.- See Also:
-
getPolicy
public final CompletableFuture<GetPolicyResponse> getPolicy(Function<GetPolicyRequest.Builder, ObjectBuilder<GetPolicyRequest>> fn) Get an enrich policy. Returns information about an enrich policy.- Parameters:
fn
- a function that initializes a builder to create theGetPolicyRequest
- See Also:
-
getPolicy
Get an enrich policy. Returns information about an enrich policy.- See Also:
-
putPolicy
Create an enrich policy. Creates an enrich policy.- See Also:
-
putPolicy
public final CompletableFuture<PutPolicyResponse> putPolicy(Function<PutPolicyRequest.Builder, ObjectBuilder<PutPolicyRequest>> fn) Create an enrich policy. Creates an enrich policy.- Parameters:
fn
- a function that initializes a builder to create thePutPolicyRequest
- See Also:
-
stats
Get enrich stats. Returns enrich coordinator statistics and information about enrich policies that are currently executing.- See Also:
-
stats
public final CompletableFuture<EnrichStatsResponse> stats(Function<EnrichStatsRequest.Builder, ObjectBuilder<EnrichStatsRequest>> fn) Get enrich stats. Returns enrich coordinator statistics and information about enrich policies that are currently executing.- Parameters:
fn
- a function that initializes a builder to create theEnrichStatsRequest
- See Also:
-
stats
Get enrich stats. Returns enrich coordinator statistics and information about enrich policies that are currently executing.- See Also:
-