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
ConstructorDescriptionStats
(long numDocs, long indexCreated, ByteSizeValue indexSize, ByteSizeValue maxPrimaryShardSize, long maxPrimaryShardDocs) Creates an instance of aStats
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.long
Returns the value of theindexCreated
record component.Returns the value of theindexSize
record component.long
Returns the value of themaxPrimaryShardDocs
record component.Returns the value of themaxPrimaryShardSize
record component.long
numDocs()
Returns the value of thenumDocs
record component.final String
toString()
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 aStats
record class.- Parameters:
numDocs
- the value for thenumDocs
record componentindexCreated
- the value for theindexCreated
record componentindexSize
- the value for theindexSize
record componentmaxPrimaryShardSize
- the value for themaxPrimaryShardSize
record componentmaxPrimaryShardDocs
- the value for themaxPrimaryShardDocs
record 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 thenumDocs
record component.- Returns:
- the value of the
numDocs
record component
-
indexCreated
public long indexCreated()Returns the value of theindexCreated
record component.- Returns:
- the value of the
indexCreated
record component
-
indexSize
Returns the value of theindexSize
record component.- Returns:
- the value of the
indexSize
record component
-
maxPrimaryShardSize
Returns the value of themaxPrimaryShardSize
record component.- Returns:
- the value of the
maxPrimaryShardSize
record component
-
maxPrimaryShardDocs
public long maxPrimaryShardDocs()Returns the value of themaxPrimaryShardDocs
record component.- Returns:
- the value of the
maxPrimaryShardDocs
record component
-