Class PreviewTransformRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.transform.PreviewTransformRequest
- All Implemented Interfaces:
ElasticsearchCommonRequest
,JsonpSerializable
- Direct Known Subclasses:
PutTransformRequest
@JsonpDeserializable public class PreviewTransformRequest extends RequestBase implements JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
PreviewTransformRequest.AbstractBuilder<BuilderT extends PreviewTransformRequest.AbstractBuilder<BuilderT>>
static class
PreviewTransformRequest.Builder
Builder forPreviewTransformRequest
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<PreviewTransformRequest>
_DESERIALIZER
Json deserializer forPreviewTransformRequest
-
Constructor Summary
Constructors Constructor Description PreviewTransformRequest(PreviewTransformRequest.AbstractBuilder<?> builder)
-
Method Summary
Modifier and Type Method Description static <TTransform>
Endpoint<PreviewTransformRequest,PreviewTransformResponse<TTransform>,ElasticsearchError>createPreviewTransformEndpoint(JsonpDeserializer<TTransform> tTransformDeserializer)
Create an "transform.preview_transform
" endpoint.java.lang.String
description()
Free text description of the transform.Destination
dest()
The destination for the transform.java.lang.String
frequency()
The interval between checks for changes in the source indices when the transform is running continuously.Latest
latest()
The latest method transforms the data by finding the latest document for each unique key.Pivot
pivot()
The pivot method transforms the data by aggregating and grouping it.RetentionPolicy
retentionPolicy()
Defines a retention policy for the transform.void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Settings
settings()
Defines optional transform settings.protected static <BuilderT extends PreviewTransformRequest.AbstractBuilder<BuilderT>>
voidsetupPreviewTransformRequestDeserializer(DelegatingDeserializer<BuilderT> op)
Source
source()
The source of the data for the transform.Sync
sync()
Defines the properties transforms require to run continuously.java.lang.String
transformId()
The id of the transform to preview.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forPreviewTransformRequest
-
-
Constructor Details
-
PreviewTransformRequest
-
-
Method Details
-
transformId
@Nullable public java.lang.String transformId()The id of the transform to preview.API name:
transform_id
-
dest
The destination for the transform.API name:
dest
-
description
@Nullable public java.lang.String description()Free text description of the transform.API name:
description
-
frequency
@Nullable public java.lang.String frequency()The 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
-
pivot
The 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
-
source
The source of the data for the transform.API name:
source
-
settings
Defines optional transform settings.API name:
settings
-
sync
Defines the properties transforms require to run continuously.API name:
sync
-
retentionPolicy
Defines a retention policy for the transform. Data that meets the defined criteria is deleted from the destination index.API name:
retention_policy
-
latest
The latest method transforms the data by finding the latest document for each unique key.API name:
latest
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupPreviewTransformRequestDeserializer
protected static <BuilderT extends PreviewTransformRequest.AbstractBuilder<BuilderT>> void setupPreviewTransformRequestDeserializer(DelegatingDeserializer<BuilderT> op) -
createPreviewTransformEndpoint
public static <TTransform> Endpoint<PreviewTransformRequest,PreviewTransformResponse<TTransform>,ElasticsearchError> createPreviewTransformEndpoint(JsonpDeserializer<TTransform> tTransformDeserializer)Create an "transform.preview_transform
" endpoint.
-