Module org.elasticsearch.server
Package org.elasticsearch.cluster.node
Record Class VersionInformation
java.lang.Object
java.lang.Record
org.elasticsearch.cluster.node.VersionInformation
- Record Components:
 nodeVersion- The nodeVersionminIndexVersion- The minimumIndexVersionsupported by this nodeminReadOnlyIndexVersion- The minimumIndexVersionfor read-only indices supported by this nodemaxIndexVersion- The maximumIndexVersionsupported by this node
public record VersionInformation(Version nodeVersion, IndexVersion minIndexVersion, IndexVersion minReadOnlyIndexVersion, IndexVersion maxIndexVersion)
extends Record
Represents the versions of various aspects of an Elasticsearch node.
- 
Field Summary
Fields - 
Constructor Summary
ConstructorsConstructorDescriptionVersionInformation(Version version, IndexVersion minIndexVersion, IndexVersion maxIndexVersion) Deprecated.VersionInformation(Version nodeVersion, IndexVersion minIndexVersion, IndexVersion minReadOnlyIndexVersion, IndexVersion maxIndexVersion) Creates an instance of aVersionInformationrecord 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.static VersionInformationinferVersions(Version nodeVersion) Returns the value of themaxIndexVersionrecord component.Returns the value of theminIndexVersionrecord component.Returns the value of theminReadOnlyIndexVersionrecord component.Returns the value of thenodeVersionrecord component.final StringtoString()Returns a string representation of this record class. 
- 
Field Details
- 
CURRENT
 
 - 
 - 
Constructor Details
- 
VersionInformation
@Deprecated public VersionInformation(Version version, IndexVersion minIndexVersion, IndexVersion maxIndexVersion) Deprecated. - 
VersionInformation
public VersionInformation(Version nodeVersion, IndexVersion minIndexVersion, IndexVersion minReadOnlyIndexVersion, IndexVersion maxIndexVersion) Creates an instance of aVersionInformationrecord class.- Parameters:
 nodeVersion- the value for thenodeVersionrecord componentminIndexVersion- the value for theminIndexVersionrecord componentminReadOnlyIndexVersion- the value for theminReadOnlyIndexVersionrecord componentmaxIndexVersion- the value for themaxIndexVersionrecord component
 
 - 
 - 
Method Details
- 
inferVersions
 - 
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). - 
nodeVersion
Returns the value of thenodeVersionrecord component.- Returns:
 - the value of the 
nodeVersionrecord component 
 - 
minIndexVersion
Returns the value of theminIndexVersionrecord component.- Returns:
 - the value of the 
minIndexVersionrecord component 
 - 
minReadOnlyIndexVersion
Returns the value of theminReadOnlyIndexVersionrecord component.- Returns:
 - the value of the 
minReadOnlyIndexVersionrecord component 
 - 
maxIndexVersion
Returns the value of themaxIndexVersionrecord component.- Returns:
 - the value of the 
maxIndexVersionrecord component 
 
 -