Class PutTransformRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.transform.PutTransformRequest
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class PutTransformRequest extends RequestBase implements JsonpSerializable
Instantiates a transform.
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PutTransformRequest.Builder
Builder forPutTransformRequest
.Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<PutTransformRequest>
_DESERIALIZER
Json deserializer forPutTransformRequest
static Endpoint<PutTransformRequest,PutTransformResponse,ErrorResponse>
_ENDPOINT
Endpoint "transform.put_transform
". -
Method Summary
Modifier and Type Method Description java.lang.Boolean
deferValidation()
When true, deferrable validations are not run.java.lang.String
description()
Free text description of the transform.Destination
dest()
Required - The destination for the transform.Time
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.static PutTransformRequest
of(java.util.function.Function<PutTransformRequest.Builder,ObjectBuilder<PutTransformRequest>> fn)
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 void
setupPutTransformRequestDeserializer(ObjectDeserializer<PutTransformRequest.Builder> op)
Source
source()
Required - The source of the data for the transform.Sync
sync()
Defines the properties transforms require to run continuously.java.lang.String
transformId()
Required - Identifier for the transform.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forPutTransformRequest
-
_ENDPOINT
Endpoint "transform.put_transform
".
-
-
Method Details
-
of
public static PutTransformRequest of(java.util.function.Function<PutTransformRequest.Builder,ObjectBuilder<PutTransformRequest>> fn) -
deferValidation
@Nullable public final java.lang.Boolean deferValidation()When true, deferrable validations are not run. This behavior may be desired if the source index does not exist until after the transform is created.API name:
defer_validation
-
description
@Nullable public final java.lang.String description()Free text description of the transform.API name:
description
-
dest
Required - The destination for the transform.API name:
dest
-
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
-
latest
The latest method transforms the data by finding the latest document for each unique key.API name:
latest
-
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
-
retentionPolicy
Defines a retention policy for the transform. Data that meets the defined criteria is deleted from the destination index.API name:
retention_policy
-
settings
Defines optional transform settings.API name:
settings
-
source
Required - The source of the data for the transform.API name:
source
-
sync
Defines the properties transforms require to run continuously.API name:
sync
-
transformId
public final java.lang.String transformId()Required - Identifier for the transform. This identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. It must start and end with alphanumeric characters.API name:
transform_id
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupPutTransformRequestDeserializer
protected static void setupPutTransformRequestDeserializer(ObjectDeserializer<PutTransformRequest.Builder> op)
-