Class OpenSearchIngestAsyncClient
java.lang.Object
org.opensearch.client.ApiClient<OpenSearchTransport,OpenSearchIngestAsyncClient>
org.opensearch.client.opensearch.ingest.OpenSearchIngestAsyncClient
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class OpenSearchIngestAsyncClient
extends ApiClient<OpenSearchTransport,OpenSearchIngestAsyncClient>
Client for the ingest namespace.
-
Field Summary
Fields inherited from class org.opensearch.client.ApiClient
transport, transportOptions -
Constructor Summary
ConstructorsConstructorDescriptionOpenSearchIngestAsyncClient(OpenSearchTransport transport) OpenSearchIngestAsyncClient(OpenSearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptionDeletes an ingest pipeline.deletePipeline(DeletePipelineRequest request) Deletes an ingest pipeline.Returns an ingest pipeline.Returns an ingest pipeline.getPipeline(GetPipelineRequest request) Returns an ingest pipeline.Returns a list of built-in grok patterns.Returns a list of built-in grok patterns.processorGrok(ProcessorGrokRequest request) Returns a list of built-in grok patterns.Creates or updates an ingest pipeline.putPipeline(PutPipelineRequest request) Creates or updates an ingest pipeline.simulate()Simulates an ingest pipeline with example documents.Simulates an ingest pipeline with example documents.simulate(SimulateRequest request) Simulates an ingest pipeline with example documents.withTransportOptions(TransportOptions transportOptions) Creates a new client with some request optionsMethods inherited from class org.opensearch.client.ApiClient
_transport, _transportOptions, getDeserializer
-
Constructor Details
-
OpenSearchIngestAsyncClient
-
OpenSearchIngestAsyncClient
public OpenSearchIngestAsyncClient(OpenSearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
public OpenSearchIngestAsyncClient withTransportOptions(@Nullable TransportOptions transportOptions) Description copied from class:ApiClientCreates a new client with some request options- Specified by:
withTransportOptionsin classApiClient<OpenSearchTransport,OpenSearchIngestAsyncClient>
-
deletePipeline
public CompletableFuture<DeletePipelineResponse> deletePipeline(DeletePipelineRequest request) throws IOException, OpenSearchException Deletes an ingest pipeline.- Throws:
IOExceptionOpenSearchException
-
deletePipeline
public final CompletableFuture<DeletePipelineResponse> deletePipeline(Function<DeletePipelineRequest.Builder, ObjectBuilder<DeletePipelineRequest>> fn) throws IOException, OpenSearchExceptionDeletes an ingest pipeline.- Parameters:
fn- a function that initializes a builder to create theDeletePipelineRequest- Throws:
IOExceptionOpenSearchException
-
getPipeline
public CompletableFuture<GetPipelineResponse> getPipeline(GetPipelineRequest request) throws IOException, OpenSearchException Returns an ingest pipeline.- Throws:
IOExceptionOpenSearchException
-
getPipeline
public final CompletableFuture<GetPipelineResponse> getPipeline(Function<GetPipelineRequest.Builder, ObjectBuilder<GetPipelineRequest>> fn) throws IOException, OpenSearchExceptionReturns an ingest pipeline.- Parameters:
fn- a function that initializes a builder to create theGetPipelineRequest- Throws:
IOExceptionOpenSearchException
-
getPipeline
public final CompletableFuture<GetPipelineResponse> getPipeline() throws IOException, OpenSearchExceptionReturns an ingest pipeline.- Throws:
IOExceptionOpenSearchException
-
processorGrok
public CompletableFuture<ProcessorGrokResponse> processorGrok(ProcessorGrokRequest request) throws IOException, OpenSearchException Returns a list of built-in grok patterns.- Throws:
IOExceptionOpenSearchException
-
processorGrok
public final CompletableFuture<ProcessorGrokResponse> processorGrok(Function<ProcessorGrokRequest.Builder, ObjectBuilder<ProcessorGrokRequest>> fn) throws IOException, OpenSearchExceptionReturns a list of built-in grok patterns.- Parameters:
fn- a function that initializes a builder to create theProcessorGrokRequest- Throws:
IOExceptionOpenSearchException
-
processorGrok
public final CompletableFuture<ProcessorGrokResponse> processorGrok() throws IOException, OpenSearchExceptionReturns a list of built-in grok patterns.- Throws:
IOExceptionOpenSearchException
-
putPipeline
public CompletableFuture<PutPipelineResponse> putPipeline(PutPipelineRequest request) throws IOException, OpenSearchException Creates or updates an ingest pipeline.- Throws:
IOExceptionOpenSearchException
-
putPipeline
public final CompletableFuture<PutPipelineResponse> putPipeline(Function<PutPipelineRequest.Builder, ObjectBuilder<PutPipelineRequest>> fn) throws IOException, OpenSearchExceptionCreates or updates an ingest pipeline.- Parameters:
fn- a function that initializes a builder to create thePutPipelineRequest- Throws:
IOExceptionOpenSearchException
-
simulate
public CompletableFuture<SimulateResponse> simulate(SimulateRequest request) throws IOException, OpenSearchException Simulates an ingest pipeline with example documents.- Throws:
IOExceptionOpenSearchException
-
simulate
public final CompletableFuture<SimulateResponse> simulate(Function<SimulateRequest.Builder, ObjectBuilder<SimulateRequest>> fn) throws IOException, OpenSearchExceptionSimulates an ingest pipeline with example documents.- Parameters:
fn- a function that initializes a builder to create theSimulateRequest- Throws:
IOExceptionOpenSearchException
-
simulate
Simulates an ingest pipeline with example documents.- Throws:
IOExceptionOpenSearchException
-