Module org.elasticsearch.server
Record Class IndexShardSegments
java.lang.Object
java.lang.Record
org.elasticsearch.action.admin.indices.segments.IndexShardSegments
- All Implemented Interfaces:
Iterable<ShardSegments>
public record IndexShardSegments(ShardId shardId, ShardSegments[] shards)
extends Record
implements Iterable<ShardSegments>
-
Constructor Summary
ConstructorsConstructorDescriptionIndexShardSegments(ShardId shardId, ShardSegments[] shards) Creates an instance of aIndexShardSegmentsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.getAt(int i) final inthashCode()Returns a hash code value for this object.iterator()shardId()Returns the value of theshardIdrecord component.shards()Returns the value of theshardsrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
IndexShardSegments
Creates an instance of aIndexShardSegmentsrecord class.- Parameters:
shardId- the value for theshardIdrecord componentshards- the value for theshardsrecord component
-
-
Method Details
-
getAt
-
iterator
- Specified by:
iteratorin interfaceIterable<ShardSegments>
-
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). -
shardId
Returns the value of theshardIdrecord component.- Returns:
- the value of the
shardIdrecord component
-
shards
Returns the value of theshardsrecord component.- Returns:
- the value of the
shardsrecord component
-