Class PreviewTransformRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.transform.PreviewTransformRequest
- All Implemented Interfaces:
- JsonpSerializable
@JsonpDeserializable
public class PreviewTransformRequest
extends RequestBase
implements JsonpSerializable
Preview a transform. Generates a preview of the results that you will get
 when you create a transform with the same configuration.
 
It returns a maximum of 100 results. The calculations are based on all the current data in the source index. It also generates a list of mappings and settings for the destination index. These values are determined based on the field types of the source index and the transform aggregations.
- See Also:
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBaseRequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<PreviewTransformRequest>Json deserializer forPreviewTransformRequeststatic final SimpleEndpoint<PreviewTransformRequest,?> Endpoint "transform.preview_transform".
- 
Method SummaryModifier and TypeMethodDescriptionstatic <TTransform>
 Endpoint<PreviewTransformRequest,PreviewTransformResponse<TTransform>, ErrorResponse> createPreviewTransformEndpoint(JsonpDeserializer<TTransform> tTransformDeserializer) Create an "transform.preview_transform" endpoint.final StringFree text description of the transform.final Destinationdest()The destination for the transform.final TimeThe interval between checks for changes in the source indices when the transform is running continuously.final Latestlatest()The latest method transforms the data by finding the latest document for each unique key.static PreviewTransformRequestfinal Pivotpivot()The pivot method transforms the data by aggregating and grouping it.final RetentionPolicyDefines a retention policy for the transform.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) final Settingssettings()Defines optional transform settings.protected static voidfinal Sourcesource()The source of the data for the transform.final Syncsync()Defines the properties transforms require to run continuously.final Timetimeout()Period to wait for a response.final StringIdentifier for the transform to preview.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBasetoString
- 
Field Details- 
_DESERIALIZERJson deserializer forPreviewTransformRequest
- 
_ENDPOINTEndpoint "transform.preview_transform".
 
- 
- 
Method Details- 
ofpublic static PreviewTransformRequest of(Function<PreviewTransformRequest.Builder, ObjectBuilder<PreviewTransformRequest>> fn) 
- 
descriptionFree text description of the transform.API name: description
- 
destThe destination for the transform.API name: dest
- 
frequencyThe interval between checks for changes in the source indices when the transform is running continuously. Also determines the retry interval in the event of transient failures while the transform is searching or indexing. The minimum value is 1s and the maximum is 1h.API name: frequency
- 
latestThe latest method transforms the data by finding the latest document for each unique key.API name: latest
- 
pivotThe pivot method transforms the data by aggregating and grouping it. These objects define the group by fields and the aggregation to reduce the data.API name: pivot
- 
retentionPolicyDefines a retention policy for the transform. Data that meets the defined criteria is deleted from the destination index.API name: retention_policy
- 
settingsDefines optional transform settings.API name: settings
- 
sourceThe source of the data for the transform.API name: source
- 
syncDefines the properties transforms require to run continuously.API name: sync
- 
timeoutPeriod to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.API name: timeout
- 
transformIdIdentifier for the transform to preview. If you specify this path parameter, you cannot provide transform configuration details in the request body.API name: transform_id
- 
serializeSerialize this object to JSON.- Specified by:
- serializein interface- JsonpSerializable
 
- 
serializeInternal
- 
setupPreviewTransformRequestDeserializerprotected static void setupPreviewTransformRequestDeserializer(ObjectDeserializer<PreviewTransformRequest.Builder> op) 
- 
createPreviewTransformEndpointpublic static <TTransform> Endpoint<PreviewTransformRequest,PreviewTransformResponse<TTransform>, createPreviewTransformEndpointErrorResponse> (JsonpDeserializer<TTransform> tTransformDeserializer) Create an "transform.preview_transform" endpoint.
 
-