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 recordA 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.ParamsNested 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 aDownsamplingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.read(StreamInput in) rounds()Returns the value of theroundsrecord component.final StringtoString()Returns a string representation of this record class.toXContent(XContentBuilder builder, ToXContent.Params params) voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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 aDownsamplingrecord class.- Parameters:
rounds- the value for theroundsrecord component
-
-
Method Details
-
read
- Throws:
IOException
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin 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 theroundsrecord component.- Returns:
- the value of the
roundsrecord component
-