Module org.elasticsearch.xcore
Record Class DataStreamLifecycleFeatureSetUsage.RetentionStats
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.core.datastreams.DataStreamLifecycleFeatureSetUsage.RetentionStats
- All Implemented Interfaces:
Writeable
- Enclosing class:
DataStreamLifecycleFeatureSetUsage
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Constructor Summary
ConstructorsConstructorDescriptionRetentionStats(long dataStreamCount, Double avgMillis, Long minMillis, Long maxMillis) Creates an instance of aRetentionStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theavgMillisrecord component.create(LongSummaryStatistics statistics) longReturns the value of thedataStreamCountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themaxMillisrecord component.Returns the value of theminMillisrecord component.read(StreamInput in) final StringtoString()Returns a string representation of this record class.voidwriteTo(StreamOutput out)
-
Constructor Details
-
RetentionStats
Creates an instance of aRetentionStatsrecord class.- Parameters:
dataStreamCount- the value for thedataStreamCountrecord componentavgMillis- the value for theavgMillisrecord componentminMillis- the value for theminMillisrecord componentmaxMillis- the value for themaxMillisrecord component
-
-
Method Details
-
create
public static DataStreamLifecycleFeatureSetUsage.RetentionStats create(LongSummaryStatistics statistics) -
read
public static DataStreamLifecycleFeatureSetUsage.RetentionStats read(StreamInput in) throws IOException - Throws:
IOException
-
writeTo
- Specified by:
writeToin interfaceWriteable- 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
dataStreamCount
public long dataStreamCount()Returns the value of thedataStreamCountrecord component.- Returns:
- the value of the
dataStreamCountrecord component
-
avgMillis
Returns the value of theavgMillisrecord component.- Returns:
- the value of the
avgMillisrecord component
-
minMillis
Returns the value of theminMillisrecord component.- Returns:
- the value of the
minMillisrecord component
-
maxMillis
Returns the value of themaxMillisrecord component.- Returns:
- the value of the
maxMillisrecord component
-