Package org.opensearch
Class LegacyESVersion
java.lang.Object
org.opensearch.Version
org.opensearch.LegacyESVersion
- All Implemented Interfaces:
Comparable<Version>,ToXContent,ToXContentFragment
The Contents of this file were originally moved from
Version.
This class keeps all the supported OpenSearch predecessor versions for backward compatibility purpose.
- Opensearch.internal:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.core.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final LegacyESVersionstatic final LegacyESVersionstatic final LegacyESVersionstatic final LegacyESVersionstatic final LegacyESVersionstatic final LegacyESVersionstatic final LegacyESVersionstatic final LegacyESVersionstatic final LegacyESVersionstatic final LegacyESVersionstatic final LegacyESVersionstatic final LegacyESVersionstatic final LegacyESVersionstatic final LegacyESVersionstatic final LegacyESVersionstatic final LegacyESVersionstatic final LegacyESVersionstatic final LegacyESVersionstatic final LegacyESVersionstatic final LegacyESVersionstatic final LegacyESVersionstatic final LegacyESVersionstatic final LegacyESVersionstatic final LegacyESVersionstatic final LegacyESVersionstatic final LegacyESVersionstatic final LegacyESVersionstatic final LegacyESVersionstatic final LegacyESVersionFields inherited from class org.opensearch.Version
build, CURRENT, id, luceneVersion, major, MASK, minor, revision, V_1_0_0, V_1_1_0, V_1_2_0, V_1_2_1, V_1_2_2, V_1_2_3, V_1_2_4, V_1_2_5, V_1_3_0, V_1_3_1, V_1_3_10, V_1_3_11, V_1_3_12, V_1_3_13, V_1_3_14, V_1_3_15, V_1_3_16, V_1_3_17, V_1_3_18, V_1_3_2, V_1_3_3, V_1_3_4, V_1_3_5, V_1_3_6, V_1_3_7, V_1_3_8, V_1_3_9, V_2_0_0, V_2_0_1, V_2_0_2, V_2_1_0, V_2_1_1, V_2_10_0, V_2_10_1, V_2_11_0, V_2_11_1, V_2_11_2, V_2_12_0, V_2_12_1, V_2_13_0, V_2_13_1, V_2_14_0, V_2_14_1, V_2_15_0, V_2_2_0, V_2_2_1, V_2_2_2, V_2_3_0, V_2_3_1, V_2_4_0, V_2_4_1, V_2_4_2, V_2_5_0, V_2_5_1, V_2_6_0, V_2_6_1, V_2_7_0, V_2_7_1, V_2_8_0, V_2_8_1, V_2_9_0, V_2_9_1, V_EMPTY, V_EMPTY_IDFields inherited from interface org.opensearch.core.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLegacyESVersion(int id, org.apache.lucene.util.Version luceneVersion) -
Method Summary
Modifier and TypeMethodDescriptionstatic VersionfromString(String version) Returns the version given its string representation, current version if the argument is null or emptybooleanisAlpha()Returns true iff this version is an alpha version Note: This has been introduced in version 5 of the OpenSearch predecessor.booleanisBeta()protected intmaskId(int id) this is used to ensure the version id for new versions of OpenSearch are always less than the predecessor versionstoString()Methods inherited from class org.opensearch.Version
after, before, compareMajor, compareTo, computeID, computeLegacyID, computeMinCompatVersion, equals, fromId, getDeclaredVersions, hashCode, isCompatible, isRC, isRelease, main, max, min, minimumCompatibilityVersion, minimumIndexCompatibilityVersion, onOrAfter, onOrBefore, stringHasLength, toXContentMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opensearch.core.xcontent.ToXContentFragment
isFragment
-
Field Details
-
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
-