Package org.opensearch
Class LegacyESVersion
java.lang.Object
org.opensearch.Version
org.opensearch.LegacyESVersion
- All Implemented Interfaces:
java.lang.Comparable<Version>
,org.opensearch.common.xcontent.ToXContent
,org.opensearch.common.xcontent.ToXContentFragment
public class LegacyESVersion extends Version
The Contents of this file were originally moved from
Version
.
This class keeps all the supported OpenSearch predecessor versions for
backward compatibility purpose.-
Nested Class Summary
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description protected
LegacyESVersion(int id, org.apache.lucene.util.Version luceneVersion)
-
Method Summary
Modifier and Type Method Description static Version
fromString(java.lang.String version)
Returns the version given its string representation, current version if the argument is null or emptyboolean
isAlpha()
Returns true iff this version is an alpha version Note: This has been introduced in version 5 of the OpenSearch predecessor.boolean
isBeta()
protected int
maskId(int id)
this is used to ensure the version id for new versions of OpenSearch are always less than the predecessor versionsjava.lang.String
toString()
Methods inherited from class org.opensearch.Version
after, before, compareMajor, compareTo, computeID, computeLegacyID, computeMinCompatVersion, equals, fromId, getDeclaredVersions, hashCode, indexCreated, isCompatible, isRC, isRelease, main, max, min, minimumCompatibilityVersion, minimumIndexCompatibilityVersion, onOrAfter, onOrBefore, readVersion, toXContent, writeVersion
-
Field Details
-
V_6_0_0_alpha1
-
V_6_0_0_alpha2
-
V_6_0_0_beta1
-
V_6_0_0_beta2
-
V_6_0_0_rc1
-
V_6_0_0_rc2
-
V_6_0_0
-
V_6_0_1
-
V_6_1_0
-
V_6_1_1
-
V_6_1_2
-
V_6_1_3
-
V_6_1_4
-
V_6_2_0
-
V_6_2_1
-
V_6_2_2
-
V_6_2_3
-
V_6_2_4
-
V_6_3_0
-
V_6_3_1
-
V_6_3_2
-
V_6_4_0
-
V_6_4_1
-
V_6_4_2
-
V_6_4_3
-
V_6_5_0
-
V_6_5_1
-
V_6_5_2
-
V_6_5_3
-
V_6_5_4
-
V_6_6_0
-
V_6_6_1
-
V_6_6_2
-
V_6_7_0
-
V_6_7_1
-
V_6_7_2
-
V_6_8_0
-
V_6_8_1
-
V_6_8_2
-
V_6_8_3
-
V_6_8_4
-
V_6_8_5
-
V_6_8_6
-
V_6_8_7
-
V_6_8_8
-
V_6_8_9
-
V_6_8_10
-
V_6_8_11
-
V_6_8_12
-
V_6_8_13
-
V_6_8_14
-
V_6_8_15
-
V_7_0_0
-
V_7_0_1
-
V_7_1_0
-
V_7_1_1
-
V_7_2_0
-
V_7_2_1
-
V_7_3_0
-
V_7_3_1
-
V_7_3_2
-
V_7_4_0
-
V_7_4_1
-
V_7_4_2
-
V_7_5_0
-
V_7_5_1
-
V_7_5_2
-
V_7_6_0
-
V_7_6_1
-
V_7_6_2
-
V_7_7_0
-
V_7_7_1
-
V_7_8_0
-
V_7_8_1
-
V_7_9_0
-
V_7_9_1
-
V_7_9_2
-
V_7_9_3
-
V_7_10_0
-
V_7_10_1
-
V_7_10_2
-
idToVersion
-
stringToVersion
-
-
Constructor Details
-
LegacyESVersion
protected LegacyESVersion(int id, org.apache.lucene.util.Version luceneVersion)
-
-
Method Details
-
isBeta
public boolean isBeta() -
isAlpha
public boolean isAlpha()Returns true iff this version is an alpha version Note: This has been introduced in version 5 of the OpenSearch predecessor. Previous versions will never have an alpha version. -
fromString
Returns the version given its string representation, current version if the argument is null or empty -
maskId
protected int maskId(int id)this is used to ensure the version id for new versions of OpenSearch are always less than the predecessor versions -
toString
public java.lang.String toString()
-