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
Modifier and Type Method Description AcknowledgedResponsedeletePipeline(DeletePipelineRequest request, RequestOptions options)Delete an existing pipeline.CancellabledeletePipelineAsync(DeletePipelineRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Asynchronously delete an existing pipeline.GetPipelineResponsegetPipeline(GetPipelineRequest request, RequestOptions options)Get an existing pipeline.CancellablegetPipelineAsync(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.CancellableputPipelineAsync(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 requestCancellablesimulateAsync(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 Cancellable 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- Returns:
- cancellable that may be used to cancel the request
-
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 Cancellable 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- Returns:
- cancellable that may be used to cancel the request
-
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 Cancellable 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- Returns:
- cancellable that may be used to cancel the request
-
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 Cancellable 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- Returns:
- cancellable that may be used to cancel the request
-
-