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:
buildVersion
- The nodeBuildVersion
minIndexVersion
- The minimumIndexVersion
supported by this nodeminReadOnlyIndexVersion
- The minimumIndexVersion
for read-only indices supported by this nodemaxIndexVersion
- The maximumIndexVersion
supported by this node
public record VersionInformation(BuildVersion buildVersion, 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
(BuildVersion version, IndexVersion minIndexVersion, IndexVersion minReadOnlyIndexVersion, IndexVersion maxIndexVersion) VersionInformation
(BuildVersion buildVersion, Version nodeVersion, IndexVersion minIndexVersion, IndexVersion minReadOnlyIndexVersion, IndexVersion maxIndexVersion) Creates an instance of aVersionInformation
record class.VersionInformation
(Version version, IndexVersion minIndexVersion, IndexVersion maxIndexVersion) Deprecated.VersionInformation
(Version version, IndexVersion minIndexVersion, IndexVersion minReadOnlyIndexVersion, IndexVersion maxIndexVersion) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebuildVersion
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.static VersionInformation
inferVersions
(Version nodeVersion) Deprecated.Returns the value of themaxIndexVersion
record component.Returns the value of theminIndexVersion
record component.Returns the value of theminReadOnlyIndexVersion
record component.Returns the value of thenodeVersion
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
CURRENT
-
-
Constructor Details
-
VersionInformation
public VersionInformation(BuildVersion buildVersion, Version nodeVersion, IndexVersion minIndexVersion, IndexVersion minReadOnlyIndexVersion, IndexVersion maxIndexVersion) Creates an instance of aVersionInformation
record class.- Parameters:
buildVersion
- the value for thebuildVersion
record componentnodeVersion
- the value for thenodeVersion
record componentminIndexVersion
- the value for theminIndexVersion
record componentminReadOnlyIndexVersion
- the value for theminReadOnlyIndexVersion
record componentmaxIndexVersion
- the value for themaxIndexVersion
record component
-
VersionInformation
public VersionInformation(BuildVersion version, IndexVersion minIndexVersion, IndexVersion minReadOnlyIndexVersion, IndexVersion maxIndexVersion) -
VersionInformation
@Deprecated public VersionInformation(Version version, IndexVersion minIndexVersion, IndexVersion maxIndexVersion) Deprecated. -
VersionInformation
@Deprecated public VersionInformation(Version version, IndexVersion minIndexVersion, IndexVersion minReadOnlyIndexVersion, IndexVersion maxIndexVersion) Deprecated.
-
-
Method Details
-
inferVersions
Deprecated. -
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)
. -
buildVersion
Returns the value of thebuildVersion
record component.- Returns:
- the value of the
buildVersion
record component
-
nodeVersion
Returns the value of thenodeVersion
record component.- Returns:
- the value of the
nodeVersion
record component
-
minIndexVersion
Returns the value of theminIndexVersion
record component.- Returns:
- the value of the
minIndexVersion
record component
-
minReadOnlyIndexVersion
Returns the value of theminReadOnlyIndexVersion
record component.- Returns:
- the value of the
minReadOnlyIndexVersion
record component
-
maxIndexVersion
Returns the value of themaxIndexVersion
record component.- Returns:
- the value of the
maxIndexVersion
record component
-