Module org.elasticsearch.server
Record Class DataStreamLifecycle.Downsampling
java.lang.Object
java.lang.Record
org.elasticsearch.cluster.metadata.DataStreamLifecycle.Downsampling
- Record Components:
rounds
- is a list of downsampling configuration which instructs when a backing index should be downsampled (`after`) and at which interval (`fixed_interval`). Null represents an explicit no downsampling during template composition.
- All Implemented Interfaces:
Writeable
,ToXContent
,ToXContentFragment
- Enclosing class:
DataStreamLifecycle
public static record DataStreamLifecycle.Downsampling(List<DataStreamLifecycle.Downsampling.Round> rounds)
extends Record
implements Writeable, ToXContentFragment
Downsampling holds the configuration about when should elasticsearch downsample a backing index.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
A round represents the configuration for when and how elasticsearch will downsample a backing index.Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
FieldsFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aDownsampling
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.read
(StreamInput in) rounds()
Returns the value of therounds
record component.final String
toString()
Returns a string representation of this record class.toXContent
(XContentBuilder builder, ToXContent.Params params) void
writeTo
(StreamOutput out) Write this into the StreamOutput.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Field Details
-
FIVE_MINUTES_MILLIS
public static final long FIVE_MINUTES_MILLIS -
NULL
-
-
Constructor Details
-
Downsampling
Creates an instance of aDownsampling
record class.- Parameters:
rounds
- the value for therounds
record component
-
-
Method Details
-
read
- Throws:
IOException
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Throws:
IOException
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContent
in interfaceToXContent
- Throws:
IOException
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
rounds
Returns the value of therounds
record component.- Returns:
- the value of the
rounds
record component
-