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
ConstructorDescriptionIndexShardSegments
(ShardId shardId, ShardSegments[] shards) Creates an instance of aIndexShardSegments
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.getAt
(int i) final int
hashCode()
Returns a hash code value for this object.iterator()
shardId()
Returns the value of theshardId
record component.shards()
Returns the value of theshards
record component.final String
toString()
Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
IndexShardSegments
Creates an instance of aIndexShardSegments
record class.- Parameters:
shardId
- the value for theshardId
record componentshards
- the value for theshards
record component
-
-
Method Details
-
getAt
-
iterator
- Specified by:
iterator
in 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 theshardId
record component.- Returns:
- the value of the
shardId
record component
-
shards
Returns the value of theshards
record component.- Returns:
- the value of the
shards
record component
-