Module org.elasticsearch.server
Record Class ShardRecoveryPlan.SnapshotFilesToRecover
java.lang.Object
java.lang.Record
org.elasticsearch.indices.recovery.plan.ShardRecoveryPlan.SnapshotFilesToRecover
- All Implemented Interfaces:
Iterable<BlobStoreIndexShardSnapshot.FileInfo>
- Enclosing class:
ShardRecoveryPlan
public static record ShardRecoveryPlan.SnapshotFilesToRecover(IndexId indexId, String repository, List<BlobStoreIndexShardSnapshot.FileInfo> snapshotFiles)
extends Record
implements Iterable<BlobStoreIndexShardSnapshot.FileInfo>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSnapshotFilesToRecover(IndexId indexId, String repository, List<BlobStoreIndexShardSnapshot.FileInfo> snapshotFiles) Creates an instance of aSnapshotFilesToRecoverrecord 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.indexId()Returns the value of theindexIdrecord component.booleanisEmpty()iterator()Returns the value of therepositoryrecord component.intsize()Returns the value of thesnapshotFilesrecord 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
-
Field Details
-
EMPTY
-
-
Constructor Details
-
SnapshotFilesToRecover
public SnapshotFilesToRecover(IndexId indexId, String repository, List<BlobStoreIndexShardSnapshot.FileInfo> snapshotFiles) Creates an instance of aSnapshotFilesToRecoverrecord class.- Parameters:
indexId- the value for theindexIdrecord componentrepository- the value for therepositoryrecord componentsnapshotFiles- the value for thesnapshotFilesrecord component
-
-
Method Details
-
size
public int size() -
isEmpty
public boolean isEmpty() -
iterator
- Specified by:
iteratorin interfaceIterable<BlobStoreIndexShardSnapshot.FileInfo>
-
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). -
indexId
Returns the value of theindexIdrecord component.- Returns:
- the value of the
indexIdrecord component
-
repository
Returns the value of therepositoryrecord component.- Returns:
- the value of the
repositoryrecord component
-
snapshotFiles
Returns the value of thesnapshotFilesrecord component.- Returns:
- the value of the
snapshotFilesrecord component
-