Module org.elasticsearch.server
Record Class DataStreamLifecycle.Downsampling.Round
java.lang.Object
java.lang.Record
org.elasticsearch.cluster.metadata.DataStreamLifecycle.Downsampling.Round
- Record Components:
after
- is a TimeValue configuring how old (based on generation age) should a backing index be before downsamplingconfig
- contains the interval that the backing index is going to be downsampled.
- All Implemented Interfaces:
Writeable
,ToXContent
,ToXContentObject
- Enclosing class:
DataStreamLifecycle.Downsampling
public static record DataStreamLifecycle.Downsampling.Round(TimeValue after, DownsampleConfig config)
extends Record
implements Writeable, ToXContentObject
A round represents the configuration for when and how elasticsearch will downsample a backing index.
-
Nested Class Summary
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
ConstructorsConstructorDescriptionRound
(TimeValue after, DownsampleConfig config) Creates an instance of aRound
record class. -
Method Summary
Modifier and TypeMethodDescriptionafter()
Returns the value of theafter
record component.config()
Returns the value of theconfig
record component.final boolean
Indicates whether some other object is "equal to" this one.fromXContent
(XContentParser parser, Void context) final int
hashCode()
Returns a hash code value for this object.read
(StreamInput in) 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.ToXContentObject
isFragment
-
Field Details
-
AFTER_FIELD
-
FIXED_INTERVAL_FIELD
-
-
Constructor Details
-
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
-
fromXContent
public static DataStreamLifecycle.Downsampling.Round fromXContent(XContentParser parser, Void context) throws IOException - 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)
. -
after
Returns the value of theafter
record component.- Returns:
- the value of the
after
record component
-
config
Returns the value of theconfig
record component.- Returns:
- the value of the
config
record component
-