Class ElasticsearchIngestClient
java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchIngestClient>
co.elastic.clients.elasticsearch.ingest.ElasticsearchIngestClient
public class ElasticsearchIngestClient
extends ApiClient<ElasticsearchTransport,ElasticsearchIngestClient>
Client for the ingest namespace.
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions -
Constructor Summary
ConstructorsConstructorDescriptionElasticsearchIngestClient(ElasticsearchTransport transport) ElasticsearchIngestClient(ElasticsearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptionDeletes a geoip database configuration.deleteGeoipDatabase(Function<DeleteGeoipDatabaseRequest.Builder, ObjectBuilder<DeleteGeoipDatabaseRequest>> fn) Deletes a geoip database configuration.deletePipeline(DeletePipelineRequest request) Deletes one or more existing ingest pipeline.final DeletePipelineResponseDeletes one or more existing ingest pipeline.Gets download statistics for GeoIP2 databases used with the geoip processor.Returns information about one or more geoip database configurations.getGeoipDatabase(GetGeoipDatabaseRequest request) Returns information about one or more geoip database configurations.final GetGeoipDatabaseResponsegetGeoipDatabase(Function<GetGeoipDatabaseRequest.Builder, ObjectBuilder<GetGeoipDatabaseRequest>> fn) Returns information about one or more geoip database configurations.Returns information about one or more ingest pipelines.getPipeline(GetPipelineRequest request) Returns information about one or more ingest pipelines.final GetPipelineResponseReturns information about one or more ingest pipelines.Extracts structured fields out of a single text field within a document.putGeoipDatabase(PutGeoipDatabaseRequest request) Returns information about one or more geoip database configurations.final PutGeoipDatabaseResponseputGeoipDatabase(Function<PutGeoipDatabaseRequest.Builder, ObjectBuilder<PutGeoipDatabaseRequest>> fn) Returns information about one or more geoip database configurations.putPipeline(PutPipelineRequest request) Creates or updates an ingest pipeline.final PutPipelineResponseCreates or updates an ingest pipeline.simulate()Executes an ingest pipeline against a set of provided documents.simulate(SimulateRequest request) Executes an ingest pipeline against a set of provided documents.final SimulateResponseExecutes an ingest pipeline against a set of provided documents.withTransportOptions(TransportOptions transportOptions) Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_jsonpMapper, _transport, _transportOptions, getDeserializer, withTransportOptions
-
Constructor Details
-
ElasticsearchIngestClient
-
ElasticsearchIngestClient
public ElasticsearchIngestClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
Description copied from class:ApiClientCreates a new client with some request options- Specified by:
withTransportOptionsin classApiClient<ElasticsearchTransport,ElasticsearchIngestClient>
-
deleteGeoipDatabase
public DeleteGeoipDatabaseResponse deleteGeoipDatabase(DeleteGeoipDatabaseRequest request) throws IOException, ElasticsearchException Deletes a geoip database configuration.- Throws:
IOExceptionElasticsearchException- See Also:
-
deleteGeoipDatabase
public final DeleteGeoipDatabaseResponse deleteGeoipDatabase(Function<DeleteGeoipDatabaseRequest.Builder, ObjectBuilder<DeleteGeoipDatabaseRequest>> fn) throws IOException, ElasticsearchExceptionDeletes a geoip database configuration.- Parameters:
fn- a function that initializes a builder to create theDeleteGeoipDatabaseRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
deletePipeline
public DeletePipelineResponse deletePipeline(DeletePipelineRequest request) throws IOException, ElasticsearchException Deletes one or more existing ingest pipeline.- Throws:
IOExceptionElasticsearchException- See Also:
-
deletePipeline
public final DeletePipelineResponse deletePipeline(Function<DeletePipelineRequest.Builder, ObjectBuilder<DeletePipelineRequest>> fn) throws IOException, ElasticsearchExceptionDeletes one or more existing ingest pipeline.- Parameters:
fn- a function that initializes a builder to create theDeletePipelineRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
geoIpStats
Gets download statistics for GeoIP2 databases used with the geoip processor.- Throws:
IOExceptionElasticsearchException- See Also:
-
getGeoipDatabase
public GetGeoipDatabaseResponse getGeoipDatabase(GetGeoipDatabaseRequest request) throws IOException, ElasticsearchException Returns information about one or more geoip database configurations.- Throws:
IOExceptionElasticsearchException- See Also:
-
getGeoipDatabase
public final GetGeoipDatabaseResponse getGeoipDatabase(Function<GetGeoipDatabaseRequest.Builder, ObjectBuilder<GetGeoipDatabaseRequest>> fn) throws IOException, ElasticsearchExceptionReturns information about one or more geoip database configurations.- Parameters:
fn- a function that initializes a builder to create theGetGeoipDatabaseRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
getGeoipDatabase
Returns information about one or more geoip database configurations.- Throws:
IOExceptionElasticsearchException- See Also:
-
getPipeline
public GetPipelineResponse getPipeline(GetPipelineRequest request) throws IOException, ElasticsearchException Returns information about one or more ingest pipelines. This API returns a local reference of the pipeline.- Throws:
IOExceptionElasticsearchException- See Also:
-
getPipeline
public final GetPipelineResponse getPipeline(Function<GetPipelineRequest.Builder, ObjectBuilder<GetPipelineRequest>> fn) throws IOException, ElasticsearchExceptionReturns information about one or more ingest pipelines. This API returns a local reference of the pipeline.- Parameters:
fn- a function that initializes a builder to create theGetPipelineRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
getPipeline
Returns information about one or more ingest pipelines. This API returns a local reference of the pipeline.- Throws:
IOExceptionElasticsearchException- See Also:
-
processorGrok
Extracts structured fields out of a single text field within a document. You choose which field to extract matched fields from, as well as the grok pattern you expect will match. A grok pattern is like a regular expression that supports aliased expressions that can be reused.- Throws:
IOExceptionElasticsearchException- See Also:
-
putGeoipDatabase
public PutGeoipDatabaseResponse putGeoipDatabase(PutGeoipDatabaseRequest request) throws IOException, ElasticsearchException Returns information about one or more geoip database configurations.- Throws:
IOExceptionElasticsearchException- See Also:
-
putGeoipDatabase
public final PutGeoipDatabaseResponse putGeoipDatabase(Function<PutGeoipDatabaseRequest.Builder, ObjectBuilder<PutGeoipDatabaseRequest>> fn) throws IOException, ElasticsearchExceptionReturns information about one or more geoip database configurations.- Parameters:
fn- a function that initializes a builder to create thePutGeoipDatabaseRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
putPipeline
public PutPipelineResponse putPipeline(PutPipelineRequest request) throws IOException, ElasticsearchException Creates or updates an ingest pipeline. Changes made using this API take effect immediately.- Throws:
IOExceptionElasticsearchException- See Also:
-
putPipeline
public final PutPipelineResponse putPipeline(Function<PutPipelineRequest.Builder, ObjectBuilder<PutPipelineRequest>> fn) throws IOException, ElasticsearchExceptionCreates or updates an ingest pipeline. Changes made using this API take effect immediately.- Parameters:
fn- a function that initializes a builder to create thePutPipelineRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
simulate
public SimulateResponse simulate(SimulateRequest request) throws IOException, ElasticsearchException Executes an ingest pipeline against a set of provided documents.- Throws:
IOExceptionElasticsearchException- See Also:
-
simulate
public final SimulateResponse simulate(Function<SimulateRequest.Builder, ObjectBuilder<SimulateRequest>> fn) throws IOException, ElasticsearchExceptionExecutes an ingest pipeline against a set of provided documents.- Parameters:
fn- a function that initializes a builder to create theSimulateRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
simulate
Executes an ingest pipeline against a set of provided documents.- Throws:
IOExceptionElasticsearchException- See Also:
-