Module org.elasticsearch.server
Record Class DataStreamLifecycle.DownsamplingRound
java.lang.Object
java.lang.Record
org.elasticsearch.cluster.metadata.DataStreamLifecycle.DownsamplingRound
- 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
public static record DataStreamLifecycle.DownsamplingRound(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.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ParseFieldstatic final longstatic final ParseFieldFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionDownsamplingRound(TimeValue after, DownsampleConfig config) Creates an instance of aDownsamplingRoundrecord class. -
Method Summary
Modifier and TypeMethodDescriptionafter()Returns the value of theafterrecord component.config()Returns the value of theconfigrecord component.final booleanIndicates whether some other object is "equal to" this one.fromXContent(XContentParser parser, Void context) final inthashCode()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) 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.ToXContentObject
isFragment
-
Field Details
-
AFTER_FIELD
-
FIXED_INTERVAL_FIELD
-
FIVE_MINUTES_MILLIS
public static final long FIVE_MINUTES_MILLIS
-
-
Constructor Details
-
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
-
fromXContent
public static DataStreamLifecycle.DownsamplingRound 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 theafterrecord component.- Returns:
- the value of the
afterrecord component
-
config
Returns the value of theconfigrecord component.- Returns:
- the value of the
configrecord component
-