Class ElasticsearchIngestClient
java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchIngestClient>
co.elastic.clients.elasticsearch.ingest.ElasticsearchIngestClient
- All Implemented Interfaces:
Closeable
,AutoCloseable
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 DeletePipelineResponse
Deletes 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 GetGeoipDatabaseResponse
getGeoipDatabase
(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 GetPipelineResponse
Returns 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 PutGeoipDatabaseResponse
putGeoipDatabase
(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 PutPipelineResponse
Creates or updates an ingest pipeline.simulate
(SimulateRequest request) Executes an ingest pipeline against a set of provided documents.final SimulateResponse
Executes 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, close, getDeserializer, withTransportOptions
-
Constructor Details
-
ElasticsearchIngestClient
-
ElasticsearchIngestClient
public ElasticsearchIngestClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
Description copied from class:ApiClient
Creates a new client with some request options- Specified by:
withTransportOptions
in classApiClient<ElasticsearchTransport,
ElasticsearchIngestClient>
-
deleteGeoipDatabase
public DeleteGeoipDatabaseResponse deleteGeoipDatabase(DeleteGeoipDatabaseRequest request) throws IOException, ElasticsearchException Deletes a geoip database configuration.- Throws:
IOException
ElasticsearchException
- 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:
IOException
ElasticsearchException
- See Also:
-
deletePipeline
public DeletePipelineResponse deletePipeline(DeletePipelineRequest request) throws IOException, ElasticsearchException Deletes one or more existing ingest pipeline.- Throws:
IOException
ElasticsearchException
- 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:
IOException
ElasticsearchException
- See Also:
-
geoIpStats
Gets download statistics for GeoIP2 databases used with the geoip processor.- Throws:
IOException
ElasticsearchException
- See Also:
-
getGeoipDatabase
public GetGeoipDatabaseResponse getGeoipDatabase(GetGeoipDatabaseRequest request) throws IOException, ElasticsearchException Returns information about one or more geoip database configurations.- Throws:
IOException
ElasticsearchException
- 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:
IOException
ElasticsearchException
- See Also:
-
getGeoipDatabase
Returns information about one or more geoip database configurations.- Throws:
IOException
ElasticsearchException
- 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:
IOException
ElasticsearchException
- 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:
IOException
ElasticsearchException
- See Also:
-
getPipeline
Returns information about one or more ingest pipelines. This API returns a local reference of the pipeline.- Throws:
IOException
ElasticsearchException
- 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:
IOException
ElasticsearchException
- See Also:
-
putGeoipDatabase
public PutGeoipDatabaseResponse putGeoipDatabase(PutGeoipDatabaseRequest request) throws IOException, ElasticsearchException Returns information about one or more geoip database configurations.- Throws:
IOException
ElasticsearchException
- 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:
IOException
ElasticsearchException
- 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:
IOException
ElasticsearchException
- 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:
IOException
ElasticsearchException
- See Also:
-
simulate
public SimulateResponse simulate(SimulateRequest request) throws IOException, ElasticsearchException Executes an ingest pipeline against a set of provided documents.- Throws:
IOException
ElasticsearchException
- 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:
IOException
ElasticsearchException
- See Also:
-