Class DataStreamLifecycle
java.lang.Object
co.elastic.clients.elasticsearch.indices.DataStreamLifecycle
- All Implemented Interfaces:
JsonpSerializable
- Direct Known Subclasses:
DataStreamLifecycleWithRollover
Data stream lifecycle denotes that a data stream is managed by the data
stream lifecycle and contains the configuration.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<DataStreamLifecycle>Json deserializer forDataStreamLifecycle -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
Modifier and TypeMethodDescriptionfinal TimeIf defined, every document added to this data stream will be stored at least for this time frame.static DataStreamLifecyclefinal List<DownsamplingRound>The list of downsampling rounds to execute as part of this downsampling configurationfinal SamplingMethodThe method used to downsample the data.final Booleanenabled()If defined, it turns data stream lifecycle on/off (true/false) for this data stream.final TimeOnly available with feature flag dlm_searchable_snapshots.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static <BuilderT extends DataStreamLifecycle.AbstractBuilder<BuilderT>>
voidsetupDataStreamLifecycleDeserializer(ObjectDeserializer<BuilderT> op) toString()
-
Field Details
-
_DESERIALIZER
Json deserializer forDataStreamLifecycle
-
-
Constructor Details
-
DataStreamLifecycle
-
-
Method Details
-
dataStreamLifecycleOf
public static DataStreamLifecycle dataStreamLifecycleOf(Function<DataStreamLifecycle.Builder, ObjectBuilder<DataStreamLifecycle>> fn) -
dataRetention
If defined, every document added to this data stream will be stored at least for this time frame. Any time after this duration the document could be deleted. When empty, every document in this data stream will be stored indefinitely.API name:
data_retention -
downsampling
The list of downsampling rounds to execute as part of this downsampling configurationAPI name:
downsampling -
downsamplingMethod
The method used to downsample the data. There are two optionsaggregateandlast_value. It requiresdownsamplingto be defined. Defaults toaggregate.API name:
downsampling_method -
enabled
If defined, it turns data stream lifecycle on/off (true/false) for this data stream. A data stream lifecycle that's disabled (enabled:false) will have no effect on the data stream.API name:
enabled -
frozenAfter
Only available with feature flag dlm_searchable_snapshots.API name:
frozen_after -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupDataStreamLifecycleDeserializer
protected static <BuilderT extends DataStreamLifecycle.AbstractBuilder<BuilderT>> void setupDataStreamLifecycleDeserializer(ObjectDeserializer<BuilderT> op)
-