Class OpenSearchIngestClient
java.lang.Object
org.opensearch.client.ApiClient<OpenSearchTransport,OpenSearchIngestClient>
org.opensearch.client.opensearch.ingest.OpenSearchIngestClient
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class OpenSearchIngestClient
extends ApiClient<OpenSearchTransport,OpenSearchIngestClient>
Client for the ingest namespace.
-
Field Summary
Fields inherited from class org.opensearch.client.ApiClient
transport, transportOptions -
Constructor Summary
ConstructorsConstructorDescriptionOpenSearchIngestClient(OpenSearchTransport transport) OpenSearchIngestClient(OpenSearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptionfinal DeletePipelineResponseDeletes an ingest pipeline.deletePipeline(DeletePipelineRequest request) Deletes an ingest pipeline.final GetPipelineResponseReturns an ingest pipeline.final GetPipelineResponseReturns an ingest pipeline.getPipeline(GetPipelineRequest request) Returns an ingest pipeline.final ProcessorGrokResponseReturns a list of built-in grok patterns.final ProcessorGrokResponseReturns a list of built-in grok patterns.processorGrok(ProcessorGrokRequest request) Returns a list of built-in grok patterns.final PutPipelineResponseCreates or updates an ingest pipeline.putPipeline(PutPipelineRequest request) Creates or updates an ingest pipeline.final SimulateResponsesimulate()Simulates an ingest pipeline with example documents.final SimulateResponseSimulates 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
-
OpenSearchIngestClient
-
OpenSearchIngestClient
public OpenSearchIngestClient(OpenSearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
Description copied from class:ApiClientCreates a new client with some request options- Specified by:
withTransportOptionsin classApiClient<OpenSearchTransport,OpenSearchIngestClient>
-
deletePipeline
public DeletePipelineResponse deletePipeline(DeletePipelineRequest request) throws IOException, OpenSearchException Deletes an ingest pipeline.- Throws:
IOExceptionOpenSearchException
-
deletePipeline
public final 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 GetPipelineResponse getPipeline(GetPipelineRequest request) throws IOException, OpenSearchException Returns an ingest pipeline.- Throws:
IOExceptionOpenSearchException
-
getPipeline
public final 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
Returns an ingest pipeline.- Throws:
IOExceptionOpenSearchException
-
processorGrok
public ProcessorGrokResponse processorGrok(ProcessorGrokRequest request) throws IOException, OpenSearchException Returns a list of built-in grok patterns.- Throws:
IOExceptionOpenSearchException
-
processorGrok
public final 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
Returns a list of built-in grok patterns.- Throws:
IOExceptionOpenSearchException
-
putPipeline
public PutPipelineResponse putPipeline(PutPipelineRequest request) throws IOException, OpenSearchException Creates or updates an ingest pipeline.- Throws:
IOExceptionOpenSearchException
-
putPipeline
public final 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
Simulates an ingest pipeline with example documents.- Throws:
IOExceptionOpenSearchException
-
simulate
public final 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
-