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) Delete an enrich policy.final DeletePolicyResponse
Delete an enrich policy.executePolicy
(ExecutePolicyRequest request) Run an enrich policy.final ExecutePolicyResponse
Run an enrich policy.Get an enrich policy.getPolicy
(GetPolicyRequest request) Get an enrich policy.final GetPolicyResponse
Get an enrich policy.putPolicy
(PutPolicyRequest request) Create an enrich policy.final PutPolicyResponse
Create an enrich policy.stats()
Get enrich stats.stats
(EnrichStatsRequest request) Get enrich stats.final EnrichStatsResponse
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
-
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 Delete an enrich policy. 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, ElasticsearchExceptionDelete an enrich policy. Deletes 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 Run an enrich policy. Create 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, ElasticsearchExceptionRun an enrich policy. Create 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 Get an enrich policy. Returns information about an enrich policy.- Throws:
IOException
ElasticsearchException
- See Also:
-
getPolicy
public final GetPolicyResponse getPolicy(Function<GetPolicyRequest.Builder, ObjectBuilder<GetPolicyRequest>> fn) throws IOException, ElasticsearchExceptionGet an enrich policy. Returns information about an enrich policy.- Parameters:
fn
- a function that initializes a builder to create theGetPolicyRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
getPolicy
Get an enrich policy. Returns information about an enrich policy.- Throws:
IOException
ElasticsearchException
- See Also:
-
putPolicy
public PutPolicyResponse putPolicy(PutPolicyRequest request) throws IOException, ElasticsearchException Create an enrich policy. Creates an enrich policy.- Throws:
IOException
ElasticsearchException
- See Also:
-
putPolicy
public final PutPolicyResponse putPolicy(Function<PutPolicyRequest.Builder, ObjectBuilder<PutPolicyRequest>> fn) throws IOException, ElasticsearchExceptionCreate an enrich policy. Creates an enrich policy.- Parameters:
fn
- a function that initializes a builder to create thePutPolicyRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
stats
public EnrichStatsResponse stats(EnrichStatsRequest request) throws IOException, ElasticsearchException Get enrich stats. Returns enrich coordinator statistics and information about enrich policies that are currently executing.- Throws:
IOException
ElasticsearchException
- See Also:
-
stats
public final EnrichStatsResponse stats(Function<EnrichStatsRequest.Builder, ObjectBuilder<EnrichStatsRequest>> fn) throws IOException, ElasticsearchExceptionGet 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
- Throws:
IOException
ElasticsearchException
- See Also:
-
stats
Get enrich stats. Returns enrich coordinator statistics and information about enrich policies that are currently executing.- Throws:
IOException
ElasticsearchException
- See Also:
-