Package org.elasticsearch.client
Class IngestClient
- java.lang.Object
-
- org.elasticsearch.client.IngestClient
-
public final class IngestClient extends java.lang.ObjectA wrapper for theRestHighLevelClientthat provides methods for accessing the Ingest API.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AcknowledgedResponsedeletePipeline(DeletePipelineRequest request, RequestOptions options)Delete an existing pipeline.voiddeletePipelineAsync(DeletePipelineRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Asynchronously delete an existing pipeline.GetPipelineResponsegetPipeline(GetPipelineRequest request, RequestOptions options)Get an existing pipeline.voidgetPipelineAsync(GetPipelineRequest request, RequestOptions options, ActionListener<GetPipelineResponse> listener)Asynchronously get an existing pipeline.AcknowledgedResponseputPipeline(PutPipelineRequest request, RequestOptions options)Add a pipeline or update an existing pipeline.voidputPipelineAsync(PutPipelineRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Asynchronously add a pipeline or update an existing pipeline.SimulatePipelineResponsesimulate(SimulatePipelineRequest request, RequestOptions options)Simulate a pipeline on a set of documents provided in the requestvoidsimulateAsync(SimulatePipelineRequest request, RequestOptions options, ActionListener<SimulatePipelineResponse> listener)Asynchronously simulate a pipeline on a set of documents provided in the request
-
-
-
Method Detail
-
putPipeline
public AcknowledgedResponse putPipeline(PutPipelineRequest request, RequestOptions options) throws java.io.IOException
Add a pipeline or update an existing pipeline. See Put Pipeline API on elastic.co- Parameters:
request- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- the response
- Throws:
java.io.IOException- in case there is a problem sending the request or parsing back the response
-
putPipelineAsync
public void putPipelineAsync(PutPipelineRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)
Asynchronously add a pipeline or update an existing pipeline. See Put Pipeline API on elastic.co- Parameters:
request- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- the listener to be notified upon request completion
-
getPipeline
public GetPipelineResponse getPipeline(GetPipelineRequest request, RequestOptions options) throws java.io.IOException
Get an existing pipeline. See Get Pipeline API on elastic.co- Parameters:
request- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- the response
- Throws:
java.io.IOException- in case there is a problem sending the request or parsing back the response
-
getPipelineAsync
public void getPipelineAsync(GetPipelineRequest request, RequestOptions options, ActionListener<GetPipelineResponse> listener)
Asynchronously get an existing pipeline. See Get Pipeline API on elastic.co- Parameters:
request- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- the listener to be notified upon request completion
-
deletePipeline
public AcknowledgedResponse deletePipeline(DeletePipelineRequest request, RequestOptions options) throws java.io.IOException
Delete an existing pipeline. See Delete Pipeline API on elastic.co- Parameters:
request- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- the response
- Throws:
java.io.IOException- in case there is a problem sending the request or parsing back the response
-
deletePipelineAsync
public void deletePipelineAsync(DeletePipelineRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)
Asynchronously delete an existing pipeline. See Delete Pipeline API on elastic.co- Parameters:
request- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- the listener to be notified upon request completion
-
simulate
public SimulatePipelineResponse simulate(SimulatePipelineRequest request, RequestOptions options) throws java.io.IOException
Simulate a pipeline on a set of documents provided in the request- Parameters:
request- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- the response
- Throws:
java.io.IOException- in case there is a problem sending the request or parsing back the response
-
simulateAsync
public void simulateAsync(SimulatePipelineRequest request, RequestOptions options, ActionListener<SimulatePipelineResponse> listener)
Asynchronously simulate a pipeline on a set of documents provided in the request- Parameters:
request- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- the listener to be notified upon request completion
-
-