Module org.elasticsearch.server
Record Class Condition.Stats
java.lang.Object
java.lang.Record
org.elasticsearch.action.admin.indices.rollover.Condition.Stats
public static record Condition.Stats(long numDocs, long indexCreated, ByteSizeValue indexSize, ByteSizeValue maxPrimaryShardSize, long maxPrimaryShardDocs)
extends Record
Holder for index stats used to evaluate conditions
-
Constructor Summary
ConstructorsConstructorDescriptionStats(long numDocs, long indexCreated, ByteSizeValue indexSize, ByteSizeValue maxPrimaryShardSize, long maxPrimaryShardDocs) Creates an instance of aStatsrecord 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.longReturns the value of theindexCreatedrecord component.Returns the value of theindexSizerecord component.longReturns the value of themaxPrimaryShardDocsrecord component.Returns the value of themaxPrimaryShardSizerecord component.longnumDocs()Returns the value of thenumDocsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Stats
public Stats(long numDocs, long indexCreated, ByteSizeValue indexSize, ByteSizeValue maxPrimaryShardSize, long maxPrimaryShardDocs) Creates an instance of aStatsrecord class.- Parameters:
numDocs- the value for thenumDocsrecord componentindexCreated- the value for theindexCreatedrecord componentindexSize- the value for theindexSizerecord componentmaxPrimaryShardSize- the value for themaxPrimaryShardSizerecord componentmaxPrimaryShardDocs- the value for themaxPrimaryShardDocsrecord component
-
-
Method Details
-
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 '=='. -
numDocs
public long numDocs()Returns the value of thenumDocsrecord component.- Returns:
- the value of the
numDocsrecord component
-
indexCreated
public long indexCreated()Returns the value of theindexCreatedrecord component.- Returns:
- the value of the
indexCreatedrecord component
-
indexSize
Returns the value of theindexSizerecord component.- Returns:
- the value of the
indexSizerecord component
-
maxPrimaryShardSize
Returns the value of themaxPrimaryShardSizerecord component.- Returns:
- the value of the
maxPrimaryShardSizerecord component
-
maxPrimaryShardDocs
public long maxPrimaryShardDocs()Returns the value of themaxPrimaryShardDocsrecord component.- Returns:
- the value of the
maxPrimaryShardDocsrecord component
-