Class ElasticsearchIngestClient
- All Implemented Interfaces:
Closeable,AutoCloseable
-
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 TypeMethodDescriptionDelete GeoIP database configurations.deleteGeoipDatabase(Function<DeleteGeoipDatabaseRequest.Builder, ObjectBuilder<DeleteGeoipDatabaseRequest>> fn) Delete GeoIP database configurations.Delete IP geolocation database configurations.deleteIpLocationDatabase(Function<DeleteIpLocationDatabaseRequest.Builder, ObjectBuilder<DeleteIpLocationDatabaseRequest>> fn) Delete IP geolocation database configurations.deletePipeline(DeletePipelineRequest request) Delete pipelines.final DeletePipelineResponseDelete pipelines.Get GeoIP statistics.Get GeoIP database configurations.getGeoipDatabase(GetGeoipDatabaseRequest request) Get GeoIP database configurations.final GetGeoipDatabaseResponsegetGeoipDatabase(Function<GetGeoipDatabaseRequest.Builder, ObjectBuilder<GetGeoipDatabaseRequest>> fn) Get GeoIP database configurations.Get IP geolocation database configurations.Get IP geolocation database configurations.getIpLocationDatabase(Function<GetIpLocationDatabaseRequest.Builder, ObjectBuilder<GetIpLocationDatabaseRequest>> fn) Get IP geolocation database configurations.Get pipelines.getPipeline(GetPipelineRequest request) Get pipelines.final GetPipelineResponseGet pipelines.Run a grok processor.putGeoipDatabase(PutGeoipDatabaseRequest request) Create or update a GeoIP database configuration.final PutGeoipDatabaseResponseputGeoipDatabase(Function<PutGeoipDatabaseRequest.Builder, ObjectBuilder<PutGeoipDatabaseRequest>> fn) Create or update a GeoIP database configuration.Create or update an IP geolocation database configuration.putIpLocationDatabase(Function<PutIpLocationDatabaseRequest.Builder, ObjectBuilder<PutIpLocationDatabaseRequest>> fn) Create or update an IP geolocation database configuration.putPipeline(PutPipelineRequest request) Create or update a pipeline.final PutPipelineResponseCreate or update a pipeline.simulate(SimulateRequest request) Simulate a pipeline.final SimulateResponseSimulate a pipeline.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:ApiClientCreates a new client with some request options- Specified by:
withTransportOptionsin classApiClient<ElasticsearchTransport,ElasticsearchIngestClient>
-
deleteGeoipDatabase
public DeleteGeoipDatabaseResponse deleteGeoipDatabase(DeleteGeoipDatabaseRequest request) throws IOException, ElasticsearchException Delete GeoIP database configurations.Delete one or more IP geolocation database configurations.
- Throws:
IOExceptionElasticsearchException- See Also:
-
deleteGeoipDatabase
public final DeleteGeoipDatabaseResponse deleteGeoipDatabase(Function<DeleteGeoipDatabaseRequest.Builder, ObjectBuilder<DeleteGeoipDatabaseRequest>> fn) throws IOException, ElasticsearchExceptionDelete GeoIP database configurations.Delete one or more IP geolocation database configurations.
- Parameters:
fn- a function that initializes a builder to create theDeleteGeoipDatabaseRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
deleteIpLocationDatabase
public DeleteIpLocationDatabaseResponse deleteIpLocationDatabase(DeleteIpLocationDatabaseRequest request) throws IOException, ElasticsearchException Delete IP geolocation database configurations.- Throws:
IOExceptionElasticsearchException- See Also:
-
deleteIpLocationDatabase
public final DeleteIpLocationDatabaseResponse deleteIpLocationDatabase(Function<DeleteIpLocationDatabaseRequest.Builder, ObjectBuilder<DeleteIpLocationDatabaseRequest>> fn) throws IOException, ElasticsearchExceptionDelete IP geolocation database configurations.- Parameters:
fn- a function that initializes a builder to create theDeleteIpLocationDatabaseRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
deletePipeline
public DeletePipelineResponse deletePipeline(DeletePipelineRequest request) throws IOException, ElasticsearchException Delete pipelines. Delete one or more ingest pipelines.- Throws:
IOExceptionElasticsearchException- See Also:
-
deletePipeline
public final DeletePipelineResponse deletePipeline(Function<DeletePipelineRequest.Builder, ObjectBuilder<DeletePipelineRequest>> fn) throws IOException, ElasticsearchExceptionDelete pipelines. Delete one or more ingest pipelines.- Parameters:
fn- a function that initializes a builder to create theDeletePipelineRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
geoIpStats
Get GeoIP statistics. Get download statistics for GeoIP2 databases that are used with the GeoIP processor.- Throws:
IOExceptionElasticsearchException- See Also:
-
getGeoipDatabase
public GetGeoipDatabaseResponse getGeoipDatabase(GetGeoipDatabaseRequest request) throws IOException, ElasticsearchException Get GeoIP database configurations.Get information about one or more IP geolocation database configurations.
- Throws:
IOExceptionElasticsearchException- See Also:
-
getGeoipDatabase
public final GetGeoipDatabaseResponse getGeoipDatabase(Function<GetGeoipDatabaseRequest.Builder, ObjectBuilder<GetGeoipDatabaseRequest>> fn) throws IOException, ElasticsearchExceptionGet GeoIP database configurations.Get information about one or more IP geolocation database configurations.
- Parameters:
fn- a function that initializes a builder to create theGetGeoipDatabaseRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
getGeoipDatabase
Get GeoIP database configurations.Get information about one or more IP geolocation database configurations.
- Throws:
IOExceptionElasticsearchException- See Also:
-
getIpLocationDatabase
public GetIpLocationDatabaseResponse getIpLocationDatabase(GetIpLocationDatabaseRequest request) throws IOException, ElasticsearchException Get IP geolocation database configurations.- Throws:
IOExceptionElasticsearchException- See Also:
-
getIpLocationDatabase
public final GetIpLocationDatabaseResponse getIpLocationDatabase(Function<GetIpLocationDatabaseRequest.Builder, ObjectBuilder<GetIpLocationDatabaseRequest>> fn) throws IOException, ElasticsearchExceptionGet IP geolocation database configurations.- Parameters:
fn- a function that initializes a builder to create theGetIpLocationDatabaseRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
getIpLocationDatabase
public GetIpLocationDatabaseResponse getIpLocationDatabase() throws IOException, ElasticsearchExceptionGet IP geolocation database configurations.- Throws:
IOExceptionElasticsearchException- See Also:
-
getPipeline
public GetPipelineResponse getPipeline(GetPipelineRequest request) throws IOException, ElasticsearchException Get pipelines.Get 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, ElasticsearchExceptionGet pipelines.Get 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
Get pipelines.Get information about one or more ingest pipelines. This API returns a local reference of the pipeline.
- Throws:
IOExceptionElasticsearchException- See Also:
-
processorGrok
Run a grok processor. Extract structured fields out of a single text field within a document. You must 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 Create or update a GeoIP database configuration.Refer to the create or update IP geolocation database configuration API.
- Throws:
IOExceptionElasticsearchException- See Also:
-
putGeoipDatabase
public final PutGeoipDatabaseResponse putGeoipDatabase(Function<PutGeoipDatabaseRequest.Builder, ObjectBuilder<PutGeoipDatabaseRequest>> fn) throws IOException, ElasticsearchExceptionCreate or update a GeoIP database configuration.Refer to the create or update IP geolocation database configuration API.
- Parameters:
fn- a function that initializes a builder to create thePutGeoipDatabaseRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
putIpLocationDatabase
public PutIpLocationDatabaseResponse putIpLocationDatabase(PutIpLocationDatabaseRequest request) throws IOException, ElasticsearchException Create or update an IP geolocation database configuration.- Throws:
IOExceptionElasticsearchException- See Also:
-
putIpLocationDatabase
public final PutIpLocationDatabaseResponse putIpLocationDatabase(Function<PutIpLocationDatabaseRequest.Builder, ObjectBuilder<PutIpLocationDatabaseRequest>> fn) throws IOException, ElasticsearchExceptionCreate or update an IP geolocation database configuration.- Parameters:
fn- a function that initializes a builder to create thePutIpLocationDatabaseRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
putPipeline
public PutPipelineResponse putPipeline(PutPipelineRequest request) throws IOException, ElasticsearchException Create or update a 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, ElasticsearchExceptionCreate or update a 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 Simulate a pipeline.Run an ingest pipeline against a set of provided documents. You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request.
- Throws:
IOExceptionElasticsearchException- See Also:
-
simulate
public final SimulateResponse simulate(Function<SimulateRequest.Builder, ObjectBuilder<SimulateRequest>> fn) throws IOException, ElasticsearchExceptionSimulate a pipeline.Run an ingest pipeline against a set of provided documents. You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request.
- Parameters:
fn- a function that initializes a builder to create theSimulateRequest- Throws:
IOExceptionElasticsearchException- See Also:
-