Module org.elasticsearch.server
Record Class MetadataRolloverService.NameResolution
java.lang.Object
java.lang.Record
org.elasticsearch.action.admin.indices.rollover.MetadataRolloverService.NameResolution
- Enclosing class:
MetadataRolloverService
-
Constructor Summary
ConstructorsConstructorDescriptionNameResolution(String sourceName, String unresolvedName, String rolloverName) Creates an instance of aNameResolutionrecord 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.Returns the value of therolloverNamerecord component.Returns the value of thesourceNamerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theunresolvedNamerecord component.
-
Constructor Details
-
NameResolution
Creates an instance of aNameResolutionrecord class.- Parameters:
sourceName- the value for thesourceNamerecord componentunresolvedName- the value for theunresolvedNamerecord componentrolloverName- the value for therolloverNamerecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
sourceName
Returns the value of thesourceNamerecord component.- Returns:
- the value of the
sourceNamerecord component
-
unresolvedName
Returns the value of theunresolvedNamerecord component.- Returns:
- the value of the
unresolvedNamerecord component
-
rolloverName
Returns the value of therolloverNamerecord component.- Returns:
- the value of the
rolloverNamerecord component
-