Class ElasticsearchIngestClient
java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchIngestClient>
co.elastic.clients.elasticsearch.ingest.ElasticsearchIngestClient
- All Implemented Interfaces:
Closeable,AutoCloseable
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 a pipeline.final DeletePipelineResponseDeletes a pipeline.Returns statistical information about geoip databasesReturns a pipeline.getPipeline(GetPipelineRequest request) Returns a pipeline.final GetPipelineResponseReturns a pipeline.Returns a list of the built-in patterns.putPipeline(PutPipelineRequest request) Creates or updates a pipeline.final PutPipelineResponseCreates or updates a pipeline.simulate()Allows to simulate a pipeline with example documents.simulate(SimulateRequest request) Allows to simulate a pipeline with example documents.final SimulateResponseAllows to simulate a pipeline with example documents.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
-
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 a pipeline.- Throws:
IOExceptionElasticsearchException- See Also:
-
deletePipeline
public final DeletePipelineResponse deletePipeline(Function<DeletePipelineRequest.Builder, ObjectBuilder<DeletePipelineRequest>> fn) throws IOException, ElasticsearchExceptionDeletes a pipeline.- Parameters:
fn- a function that initializes a builder to create theDeletePipelineRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
geoIpStats
Returns statistical information about geoip databases- Throws:
IOExceptionElasticsearchException- See Also:
-
getPipeline
public GetPipelineResponse getPipeline(GetPipelineRequest request) throws IOException, ElasticsearchException Returns a pipeline.- Throws:
IOExceptionElasticsearchException- See Also:
-
getPipeline
public final GetPipelineResponse getPipeline(Function<GetPipelineRequest.Builder, ObjectBuilder<GetPipelineRequest>> fn) throws IOException, ElasticsearchExceptionReturns a pipeline.- Parameters:
fn- a function that initializes a builder to create theGetPipelineRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
getPipeline
Returns a pipeline.- Throws:
IOExceptionElasticsearchException- See Also:
-
processorGrok
Returns a list of the built-in patterns.- Throws:
IOExceptionElasticsearchException- See Also:
-
putPipeline
public PutPipelineResponse putPipeline(PutPipelineRequest request) throws IOException, ElasticsearchException Creates or updates a pipeline.- Throws:
IOExceptionElasticsearchException- See Also:
-
putPipeline
public final PutPipelineResponse putPipeline(Function<PutPipelineRequest.Builder, ObjectBuilder<PutPipelineRequest>> fn) throws IOException, ElasticsearchExceptionCreates or updates a pipeline.- Parameters:
fn- a function that initializes a builder to create thePutPipelineRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
simulate
public SimulateResponse simulate(SimulateRequest request) throws IOException, ElasticsearchException Allows to simulate a pipeline with example documents.- Throws:
IOExceptionElasticsearchException- See Also:
-
simulate
public final SimulateResponse simulate(Function<SimulateRequest.Builder, ObjectBuilder<SimulateRequest>> fn) throws IOException, ElasticsearchExceptionAllows to simulate a pipeline with example documents.- Parameters:
fn- a function that initializes a builder to create theSimulateRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
simulate
Allows to simulate a pipeline with example documents.- Throws:
IOExceptionElasticsearchException- See Also:
-