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 DeletePolicyResponseDelete an enrich policy.executePolicy(ExecutePolicyRequest request) Run an enrich policy.final ExecutePolicyResponseRun an enrich policy.Get an enrich policy.getPolicy(GetPolicyRequest request) Get an enrich policy.final GetPolicyResponseGet an enrich policy.putPolicy(PutPolicyRequest request) Create an enrich policy.final PutPolicyResponseCreate an enrich policy.stats()Get enrich stats.stats(EnrichStatsRequest request) Get enrich stats.final EnrichStatsResponseGet 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:ApiClientCreates a new client with some request options- Specified by:
withTransportOptionsin 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:
IOExceptionElasticsearchException- 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:
IOExceptionElasticsearchException- 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:
IOExceptionElasticsearchException- 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:
IOExceptionElasticsearchException- See Also:
-
getPolicy
public GetPolicyResponse getPolicy(GetPolicyRequest request) throws IOException, ElasticsearchException Get an enrich policy. Returns information about an enrich policy.- Throws:
IOExceptionElasticsearchException- 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:
IOExceptionElasticsearchException- See Also:
-
getPolicy
Get an enrich policy. Returns information about an enrich policy.- Throws:
IOExceptionElasticsearchException- See Also:
-
putPolicy
public PutPolicyResponse putPolicy(PutPolicyRequest request) throws IOException, ElasticsearchException Create an enrich policy. Creates an enrich policy.- Throws:
IOExceptionElasticsearchException- 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:
IOExceptionElasticsearchException- 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:
IOExceptionElasticsearchException- 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:
IOExceptionElasticsearchException- See Also:
-
stats
Get enrich stats. Returns enrich coordinator statistics and information about enrich policies that are currently executing.- Throws:
IOExceptionElasticsearchException- See Also:
-