Class ElasticsearchIngestClient
java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchIngestClient>
co.elastic.clients.elasticsearch.ingest.ElasticsearchIngestClient
public class ElasticsearchIngestClient
extends ApiClient<ElasticsearchTransport,ElasticsearchIngestClient>
Client for the ingest namespace.
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions -
Constructor Summary
ConstructorsConstructorDescriptionElasticsearchIngestClient(ElasticsearchTransport transport) ElasticsearchIngestClient(ElasticsearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptiondeletePipeline(DeletePipelineRequest request) Deletes one or more existing ingest pipeline.final DeletePipelineResponseDeletes one or more existing ingest pipeline.Gets download statistics for GeoIP2 databases used with the geoip processor.Returns information about one or more ingest pipelines.getPipeline(GetPipelineRequest request) Returns information about one or more ingest pipelines.final GetPipelineResponseReturns information about one or more ingest pipelines.Extracts structured fields out of a single text field within a document.putPipeline(PutPipelineRequest request) Creates or updates an ingest pipeline.final PutPipelineResponseCreates or updates an ingest pipeline.simulate()Executes an ingest pipeline against a set of provided documents.simulate(SimulateRequest request) Executes an ingest pipeline against a set of provided documents.final SimulateResponseExecutes an ingest pipeline against a set of provided documents.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
-
ElasticsearchIngestClient
-
ElasticsearchIngestClient
public ElasticsearchIngestClient(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,ElasticsearchIngestClient>
-
deletePipeline
public DeletePipelineResponse deletePipeline(DeletePipelineRequest request) throws IOException, ElasticsearchException Deletes one or more existing ingest pipeline.- Throws:
IOExceptionElasticsearchException- See Also:
-
deletePipeline
public final DeletePipelineResponse deletePipeline(Function<DeletePipelineRequest.Builder, ObjectBuilder<DeletePipelineRequest>> fn) throws IOException, ElasticsearchExceptionDeletes one or more existing ingest pipeline.- Parameters:
fn- a function that initializes a builder to create theDeletePipelineRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
geoIpStats
Gets download statistics for GeoIP2 databases used with the geoip processor.- Throws:
IOExceptionElasticsearchException- See Also:
-
getPipeline
public GetPipelineResponse getPipeline(GetPipelineRequest request) throws IOException, ElasticsearchException Returns information about one or more ingest pipelines. This API returns a local reference of the pipeline.- Throws:
IOExceptionElasticsearchException- See Also:
-
getPipeline
public final GetPipelineResponse getPipeline(Function<GetPipelineRequest.Builder, ObjectBuilder<GetPipelineRequest>> fn) throws IOException, ElasticsearchExceptionReturns information about one or more ingest pipelines. This API returns a local reference of the pipeline.- Parameters:
fn- a function that initializes a builder to create theGetPipelineRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
getPipeline
Returns information about one or more ingest pipelines. This API returns a local reference of the pipeline.- Throws:
IOExceptionElasticsearchException- See Also:
-
processorGrok
Extracts structured fields out of a single text field within a document. You choose which field to extract matched fields from, as well as the grok pattern you expect will match. A grok pattern is like a regular expression that supports aliased expressions that can be reused.- Throws:
IOExceptionElasticsearchException- See Also:
-
putPipeline
public PutPipelineResponse putPipeline(PutPipelineRequest request) throws IOException, ElasticsearchException Creates or updates an ingest pipeline. Changes made using this API take effect immediately.- Throws:
IOExceptionElasticsearchException- See Also:
-
putPipeline
public final PutPipelineResponse putPipeline(Function<PutPipelineRequest.Builder, ObjectBuilder<PutPipelineRequest>> fn) throws IOException, ElasticsearchExceptionCreates or updates an ingest pipeline. Changes made using this API take effect immediately.- Parameters:
fn- a function that initializes a builder to create thePutPipelineRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
simulate
public SimulateResponse simulate(SimulateRequest request) throws IOException, ElasticsearchException Executes an ingest pipeline against a set of provided documents.- Throws:
IOExceptionElasticsearchException- See Also:
-
simulate
public final SimulateResponse simulate(Function<SimulateRequest.Builder, ObjectBuilder<SimulateRequest>> fn) throws IOException, ElasticsearchExceptionExecutes an ingest pipeline against a set of provided documents.- Parameters:
fn- a function that initializes a builder to create theSimulateRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
simulate
Executes an ingest pipeline against a set of provided documents.- Throws:
IOExceptionElasticsearchException- See Also:
-