Class IngestClient
java.lang.Object
org.opensearch.client.base.ApiClient<IngestClient>
org.opensearch.client.opensearch.api.ingest.IngestClient
public class IngestClient extends ApiClient<IngestClient>
Client for the ingest namespace.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description IngestClient(Transport transport)IngestClient(Transport transport, org.opensearch.client.RequestOptions options) -
Method Summary
Modifier and Type Method Description DeletePipelineResponsedeletePipeline(java.util.function.Function<DeletePipelineRequest.Builder,ObjectBuilder<DeletePipelineRequest>> fn)Deletes a pipeline.DeletePipelineResponsedeletePipeline(DeletePipelineRequest request)Deletes a pipeline.GeoIpStatsResponsegeoIpStats()Returns statistical information about geoip databasesGetPipelineResponsegetPipeline(java.util.function.Function<GetPipelineRequest.Builder,ObjectBuilder<GetPipelineRequest>> fn)Returns a pipeline.GetPipelineResponsegetPipeline(GetPipelineRequest request)Returns a pipeline.ProcessorGrokResponseprocessorGrok()Returns a list of the built-in patterns.PutPipelineResponseputPipeline(java.util.function.Function<PutPipelineRequest.Builder,ObjectBuilder<PutPipelineRequest>> fn)Creates or updates a pipeline.PutPipelineResponseputPipeline(PutPipelineRequest request)Creates or updates a pipeline.SimulatePipelineResponsesimulate(java.util.function.Function<SimulatePipelineRequest.Builder,ObjectBuilder<SimulatePipelineRequest>> fn)Allows to simulate a pipeline with example documents.SimulatePipelineResponsesimulate(SimulatePipelineRequest request)Allows to simulate a pipeline with example documents.IngestClientwithRequestOptions(java.util.function.Function<org.opensearch.client.RequestOptions.Builder,org.opensearch.client.RequestOptions.Builder> fn)Creates a newIngestClient(org.opensearch.client.base.Transport, org.opensearch.client.RequestOptions)with specific request options, inheriting existing options.IngestClientwithRequestOptions(org.opensearch.client.RequestOptions options)Creates a newIngestClient(org.opensearch.client.base.Transport, org.opensearch.client.RequestOptions)with specific request options.
-
Constructor Details
-
Method Details
-
deletePipeline
public DeletePipelineResponse deletePipeline(DeletePipelineRequest request) throws java.io.IOExceptionDeletes a pipeline.- Throws:
java.io.IOException
-
deletePipeline
public final DeletePipelineResponse deletePipeline(java.util.function.Function<DeletePipelineRequest.Builder,ObjectBuilder<DeletePipelineRequest>> fn) throws java.io.IOExceptionDeletes a pipeline.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
-
geoIpStats
Returns statistical information about geoip databases- Throws:
java.io.IOException
-
getPipeline
Returns a pipeline.- Throws:
java.io.IOException
-
getPipeline
public final GetPipelineResponse getPipeline(java.util.function.Function<GetPipelineRequest.Builder,ObjectBuilder<GetPipelineRequest>> fn) throws java.io.IOExceptionReturns a pipeline.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
-
processorGrok
Returns a list of the built-in patterns.- Throws:
java.io.IOException
-
putPipeline
Creates or updates a pipeline.- Throws:
java.io.IOException
-
putPipeline
public final PutPipelineResponse putPipeline(java.util.function.Function<PutPipelineRequest.Builder,ObjectBuilder<PutPipelineRequest>> fn) throws java.io.IOExceptionCreates or updates a pipeline.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
-
simulate
public SimulatePipelineResponse simulate(SimulatePipelineRequest request) throws java.io.IOExceptionAllows to simulate a pipeline with example documents.- Throws:
java.io.IOException
-
simulate
public final SimulatePipelineResponse simulate(java.util.function.Function<SimulatePipelineRequest.Builder,ObjectBuilder<SimulatePipelineRequest>> fn) throws java.io.IOExceptionAllows to simulate a pipeline with example documents.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
-
withRequestOptions
Creates a newIngestClient(org.opensearch.client.base.Transport, org.opensearch.client.RequestOptions)with specific request options.- Specified by:
withRequestOptionsin classApiClient<IngestClient>
-
withRequestOptions
public IngestClient withRequestOptions(java.util.function.Function<org.opensearch.client.RequestOptions.Builder,org.opensearch.client.RequestOptions.Builder> fn)Creates a newIngestClient(org.opensearch.client.base.Transport, org.opensearch.client.RequestOptions)with specific request options, inheriting existing options.- Parameters:
fn- a function taking an options builder initialized with the current request options, or initialized with default values.
-