类 IngestClient

java.lang.Object
org.easysearch.client.IngestClient

public final class IngestClient
extends java.lang.Object
A wrapper for the RestHighLevelClient that provides methods for accessing the Ingest API.

See Ingest API on elastic.co

  • 方法概要

    修饰符和类型 方法 说明
    org.easysearch.action.support.master.AcknowledgedResponse deletePipeline​(org.easysearch.action.ingest.DeletePipelineRequest request, org.easysearch.client.RequestOptions options)
    Delete an existing pipeline.
    org.easysearch.client.Cancellable deletePipelineAsync​(org.easysearch.action.ingest.DeletePipelineRequest request, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.support.master.AcknowledgedResponse> listener)
    Asynchronously delete an existing pipeline.
    org.easysearch.action.ingest.GetPipelineResponse getPipeline​(org.easysearch.action.ingest.GetPipelineRequest request, org.easysearch.client.RequestOptions options)
    Get an existing pipeline.
    org.easysearch.client.Cancellable getPipelineAsync​(org.easysearch.action.ingest.GetPipelineRequest request, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.ingest.GetPipelineResponse> listener)
    Asynchronously get an existing pipeline.
    org.easysearch.action.support.master.AcknowledgedResponse putPipeline​(org.easysearch.action.ingest.PutPipelineRequest request, org.easysearch.client.RequestOptions options)
    Add a pipeline or update an existing pipeline.
    org.easysearch.client.Cancellable putPipelineAsync​(org.easysearch.action.ingest.PutPipelineRequest request, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.support.master.AcknowledgedResponse> listener)
    Asynchronously add a pipeline or update an existing pipeline.
    org.easysearch.action.ingest.SimulatePipelineResponse simulate​(org.easysearch.action.ingest.SimulatePipelineRequest request, org.easysearch.client.RequestOptions options)
    Simulate a pipeline on a set of documents provided in the request
    org.easysearch.client.Cancellable simulateAsync​(org.easysearch.action.ingest.SimulatePipelineRequest request, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.ingest.SimulatePipelineResponse> listener)
    Asynchronously simulate a pipeline on a set of documents provided in the request

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 方法详细资料

    • putPipeline

      public org.easysearch.action.support.master.AcknowledgedResponse putPipeline​(org.easysearch.action.ingest.PutPipelineRequest request, org.easysearch.client.RequestOptions options) throws java.io.IOException
      Add a pipeline or update an existing pipeline. See Put Pipeline API on elastic.co
      参数:
      request - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      返回:
      the response
      抛出:
      java.io.IOException - in case there is a problem sending the request or parsing back the response
    • putPipelineAsync

      public org.easysearch.client.Cancellable putPipelineAsync​(org.easysearch.action.ingest.PutPipelineRequest request, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.support.master.AcknowledgedResponse> listener)
      Asynchronously add a pipeline or update an existing pipeline. See Put Pipeline API on elastic.co
      参数:
      request - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - the listener to be notified upon request completion
      返回:
      cancellable that may be used to cancel the request
    • getPipeline

      public org.easysearch.action.ingest.GetPipelineResponse getPipeline​(org.easysearch.action.ingest.GetPipelineRequest request, org.easysearch.client.RequestOptions options) throws java.io.IOException
      Get an existing pipeline. See Get Pipeline API on elastic.co
      参数:
      request - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      返回:
      the response
      抛出:
      java.io.IOException - in case there is a problem sending the request or parsing back the response
    • getPipelineAsync

      public org.easysearch.client.Cancellable getPipelineAsync​(org.easysearch.action.ingest.GetPipelineRequest request, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.ingest.GetPipelineResponse> listener)
      Asynchronously get an existing pipeline. See Get Pipeline API on elastic.co
      参数:
      request - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - the listener to be notified upon request completion
      返回:
      cancellable that may be used to cancel the request
    • deletePipeline

      public org.easysearch.action.support.master.AcknowledgedResponse deletePipeline​(org.easysearch.action.ingest.DeletePipelineRequest request, org.easysearch.client.RequestOptions options) throws java.io.IOException
      Delete an existing pipeline. See Delete Pipeline API on elastic.co
      参数:
      request - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      返回:
      the response
      抛出:
      java.io.IOException - in case there is a problem sending the request or parsing back the response
    • deletePipelineAsync

      public org.easysearch.client.Cancellable deletePipelineAsync​(org.easysearch.action.ingest.DeletePipelineRequest request, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.support.master.AcknowledgedResponse> listener)
      Asynchronously delete an existing pipeline. See Delete Pipeline API on elastic.co
      参数:
      request - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - the listener to be notified upon request completion
      返回:
      cancellable that may be used to cancel the request
    • simulate

      public org.easysearch.action.ingest.SimulatePipelineResponse simulate​(org.easysearch.action.ingest.SimulatePipelineRequest request, org.easysearch.client.RequestOptions options) throws java.io.IOException
      Simulate a pipeline on a set of documents provided in the request

      See Simulate Pipeline API on elastic.co

      参数:
      request - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      返回:
      the response
      抛出:
      java.io.IOException - in case there is a problem sending the request or parsing back the response
    • simulateAsync

      public org.easysearch.client.Cancellable simulateAsync​(org.easysearch.action.ingest.SimulatePipelineRequest request, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.ingest.SimulatePipelineResponse> listener)
      Asynchronously simulate a pipeline on a set of documents provided in the request

      See Simulate Pipeline API on elastic.co

      参数:
      request - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - the listener to be notified upon request completion
      返回:
      cancellable that may be used to cancel the request