Class LegacyESVersion
java.lang.Object
org.opensearch.Version
org.opensearch.LegacyESVersion
- All Implemented Interfaces:
Comparable<Version>,ToXContent,ToXContentFragment
-
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 LegacyESVersionFields inherited from class org.opensearch.Version
build, CURRENT, id, luceneVersion, major, MASK, minCompatVersion, minIndexCompatVersion, minor, revision, V_2_0_0, V_2_0_1, V_2_1_0, 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_15_1, V_2_16_0, V_2_16_1, V_2_17_0, V_2_17_1, V_2_17_2, V_2_18_0, V_2_18_1, V_2_19_0, V_2_19_1, V_2_19_2, V_2_19_3, V_2_2_0, V_2_2_1, V_2_3_0, 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_3_0_0, V_3_1_0, V_3_2_0, 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 TypeMethodDescriptionprotected Versionstatic 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_6_0_0
-
V_6_5_0
-
V_7_2_0
-
idToVersion
-
stringToVersion
-
-
Constructor Details
-
LegacyESVersion
protected LegacyESVersion(int id, org.apache.lucene.util.Version luceneVersion)
-
-
Method Details
-
isBeta
-
isAlpha
-
fromString
-
maskId
-
toString
-
computeMinIndexCompatVersion
- Overrides:
computeMinIndexCompatVersionin classVersion
-