Class ElasticsearchTransformClient
java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchTransformClient>
co.elastic.clients.elasticsearch.transform.ElasticsearchTransformClient
- All Implemented Interfaces:
Closeable,AutoCloseable
public class ElasticsearchTransformClient
extends ApiClient<ElasticsearchTransport,ElasticsearchTransformClient>
Client for the transform namespace.
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions -
Constructor Summary
ConstructorsConstructorDescriptionElasticsearchTransformClient(ElasticsearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptiondeleteTransform(DeleteTransformRequest request) Deletes an existing transform.final DeleteTransformResponseDeletes an existing transform.Retrieves configuration information for transforms.getTransform(GetTransformRequest request) Retrieves configuration information for transforms.final GetTransformResponseRetrieves configuration information for transforms.Retrieves usage information for transforms.getTransformStats(Function<GetTransformStatsRequest.Builder, ObjectBuilder<GetTransformStatsRequest>> fn) Retrieves usage information for transforms.<TTransform>
PreviewTransformResponse<TTransform>previewTransform(PreviewTransformRequest request, Class<TTransform> tTransformClass) Previews a transform.<TTransform>
PreviewTransformResponse<TTransform>previewTransform(PreviewTransformRequest request, Type tTransformType) Previews a transform.final <TTransform>
PreviewTransformResponse<TTransform>previewTransform(Function<PreviewTransformRequest.Builder, ObjectBuilder<PreviewTransformRequest>> fn, Class<TTransform> tTransformClass) Previews a transform.final <TTransform>
PreviewTransformResponse<TTransform>previewTransform(Function<PreviewTransformRequest.Builder, ObjectBuilder<PreviewTransformRequest>> fn, Type tTransformType) Previews a transform.putTransform(PutTransformRequest request) Instantiates a transform.final PutTransformResponseInstantiates a transform.startTransform(StartTransformRequest request) Starts one or more transforms.final StartTransformResponseStarts one or more transforms.stopTransform(StopTransformRequest request) Stops one or more transforms.final StopTransformResponseStops one or more transforms.updateTransform(UpdateTransformRequest request) Updates certain properties of a transform.final UpdateTransformResponseUpdates certain properties of a transform.Upgrades all transforms.Upgrades all transforms.upgradeTransforms(Function<UpgradeTransformsRequest.Builder, ObjectBuilder<UpgradeTransformsRequest>> fn) Upgrades all transforms.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
-
ElasticsearchTransformClient
-
ElasticsearchTransformClient
public ElasticsearchTransformClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
public ElasticsearchTransformClient withTransportOptions(@Nullable TransportOptions transportOptions) Description copied from class:ApiClientCreates a new client with some request options- Specified by:
withTransportOptionsin classApiClient<ElasticsearchTransport,ElasticsearchTransformClient>
-
deleteTransform
public DeleteTransformResponse deleteTransform(DeleteTransformRequest request) throws IOException, ElasticsearchException Deletes an existing transform.- Throws:
IOExceptionElasticsearchException- See Also:
-
deleteTransform
public final DeleteTransformResponse deleteTransform(Function<DeleteTransformRequest.Builder, ObjectBuilder<DeleteTransformRequest>> fn) throws IOException, ElasticsearchExceptionDeletes an existing transform.- Parameters:
fn- a function that initializes a builder to create theDeleteTransformRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
getTransform
public GetTransformResponse getTransform(GetTransformRequest request) throws IOException, ElasticsearchException Retrieves configuration information for transforms.- Throws:
IOExceptionElasticsearchException- See Also:
-
getTransform
public final GetTransformResponse getTransform(Function<GetTransformRequest.Builder, ObjectBuilder<GetTransformRequest>> fn) throws IOException, ElasticsearchExceptionRetrieves configuration information for transforms.- Parameters:
fn- a function that initializes a builder to create theGetTransformRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
getTransform
Retrieves configuration information for transforms.- Throws:
IOExceptionElasticsearchException- See Also:
-
getTransformStats
public GetTransformStatsResponse getTransformStats(GetTransformStatsRequest request) throws IOException, ElasticsearchException Retrieves usage information for transforms.- Throws:
IOExceptionElasticsearchException- See Also:
-
getTransformStats
public final GetTransformStatsResponse getTransformStats(Function<GetTransformStatsRequest.Builder, ObjectBuilder<GetTransformStatsRequest>> fn) throws IOException, ElasticsearchExceptionRetrieves usage information for transforms.- Parameters:
fn- a function that initializes a builder to create theGetTransformStatsRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
previewTransform
public <TTransform> PreviewTransformResponse<TTransform> previewTransform(PreviewTransformRequest request, Class<TTransform> tTransformClass) throws IOException, ElasticsearchException Previews a transform.- Throws:
IOExceptionElasticsearchException- See Also:
-
previewTransform
public final <TTransform> PreviewTransformResponse<TTransform> previewTransform(Function<PreviewTransformRequest.Builder, ObjectBuilder<PreviewTransformRequest>> fn, Class<TTransform> tTransformClass) throws IOException, ElasticsearchExceptionPreviews a transform.- Parameters:
fn- a function that initializes a builder to create thePreviewTransformRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
previewTransform
public <TTransform> PreviewTransformResponse<TTransform> previewTransform(PreviewTransformRequest request, Type tTransformType) throws IOException, ElasticsearchException Previews a transform.- Throws:
IOExceptionElasticsearchException- See Also:
-
previewTransform
public final <TTransform> PreviewTransformResponse<TTransform> previewTransform(Function<PreviewTransformRequest.Builder, ObjectBuilder<PreviewTransformRequest>> fn, Type tTransformType) throws IOException, ElasticsearchExceptionPreviews a transform.- Parameters:
fn- a function that initializes a builder to create thePreviewTransformRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
putTransform
public PutTransformResponse putTransform(PutTransformRequest request) throws IOException, ElasticsearchException Instantiates a transform.- Throws:
IOExceptionElasticsearchException- See Also:
-
putTransform
public final PutTransformResponse putTransform(Function<PutTransformRequest.Builder, ObjectBuilder<PutTransformRequest>> fn) throws IOException, ElasticsearchExceptionInstantiates a transform.- Parameters:
fn- a function that initializes a builder to create thePutTransformRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
startTransform
public StartTransformResponse startTransform(StartTransformRequest request) throws IOException, ElasticsearchException Starts one or more transforms.- Throws:
IOExceptionElasticsearchException- See Also:
-
startTransform
public final StartTransformResponse startTransform(Function<StartTransformRequest.Builder, ObjectBuilder<StartTransformRequest>> fn) throws IOException, ElasticsearchExceptionStarts one or more transforms.- Parameters:
fn- a function that initializes a builder to create theStartTransformRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
stopTransform
public StopTransformResponse stopTransform(StopTransformRequest request) throws IOException, ElasticsearchException Stops one or more transforms.- Throws:
IOExceptionElasticsearchException- See Also:
-
stopTransform
public final StopTransformResponse stopTransform(Function<StopTransformRequest.Builder, ObjectBuilder<StopTransformRequest>> fn) throws IOException, ElasticsearchExceptionStops one or more transforms.- Parameters:
fn- a function that initializes a builder to create theStopTransformRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
updateTransform
public UpdateTransformResponse updateTransform(UpdateTransformRequest request) throws IOException, ElasticsearchException Updates certain properties of a transform.- Throws:
IOExceptionElasticsearchException- See Also:
-
updateTransform
public final UpdateTransformResponse updateTransform(Function<UpdateTransformRequest.Builder, ObjectBuilder<UpdateTransformRequest>> fn) throws IOException, ElasticsearchExceptionUpdates certain properties of a transform.- Parameters:
fn- a function that initializes a builder to create theUpdateTransformRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
upgradeTransforms
public UpgradeTransformsResponse upgradeTransforms(UpgradeTransformsRequest request) throws IOException, ElasticsearchException Upgrades all transforms.- Throws:
IOExceptionElasticsearchException- See Also:
-
upgradeTransforms
public final UpgradeTransformsResponse upgradeTransforms(Function<UpgradeTransformsRequest.Builder, ObjectBuilder<UpgradeTransformsRequest>> fn) throws IOException, ElasticsearchExceptionUpgrades all transforms.- Parameters:
fn- a function that initializes a builder to create theUpgradeTransformsRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
upgradeTransforms
Upgrades all transforms.- Throws:
IOExceptionElasticsearchException- See Also:
-