Modifier and Type | Method and Description |
---|---|
boolean |
after(Version version) |
boolean |
before(Version version) |
int |
compareTo(Version other) |
boolean |
equals(java.lang.Object o) |
static Version |
fromId(int id) |
static Version |
fromString(java.lang.String version)
Returns the version given its string representation, current version if the argument is null or empty
|
int |
hashCode() |
static Version |
indexCreated(Settings indexSettings)
Return the
Version of Elasticsearch that has been used to create an index given its settings. |
boolean |
isAlpha()
Returns true iff this version is an alpha version
Note: This has been introduced in elasticsearch version 5.
|
boolean |
isBeta() |
boolean |
isCompatible(Version version)
Returns
true iff both version are compatible. |
boolean |
isRC() |
boolean |
isRelease() |
static void |
main(java.lang.String[] args) |
static Version |
max(Version version1,
Version version2)
Returns the maximum version between the 2
|
static Version |
min(Version version1,
Version version2)
Returns the minimum version between the 2.
|
Version |
minimumCompatibilityVersion()
Returns the minimum compatible version based on the current
version.
|
Version |
minimumIndexCompatibilityVersion()
Returns the minimum created index version that this version supports.
|
boolean |
onOrAfter(Version version) |
boolean |
onOrBefore(Version version) |
static Version |
readVersion(StreamInput in) |
static Version |
smallest(Version version1,
Version version2)
Deprecated.
use
min(Version, Version) instead |
java.lang.String |
toString() |
static void |
writeVersion(Version version,
StreamOutput out) |
public static final int V_2_0_0_beta1_ID
public static final Version V_2_0_0_beta1
public static final int V_2_0_0_beta2_ID
public static final Version V_2_0_0_beta2
public static final int V_2_0_0_rc1_ID
public static final Version V_2_0_0_rc1
public static final int V_2_0_0_ID
public static final Version V_2_0_0
public static final int V_2_0_1_ID
public static final Version V_2_0_1
public static final int V_2_0_2_ID
public static final Version V_2_0_2
public static final int V_2_1_0_ID
public static final Version V_2_1_0
public static final int V_2_1_1_ID
public static final Version V_2_1_1
public static final int V_2_1_2_ID
public static final Version V_2_1_2
public static final int V_2_2_0_ID
public static final Version V_2_2_0
public static final int V_2_2_1_ID
public static final Version V_2_2_1
public static final int V_2_2_2_ID
public static final Version V_2_2_2
public static final int V_2_3_0_ID
public static final Version V_2_3_0
public static final int V_2_3_1_ID
public static final Version V_2_3_1
public static final int V_2_3_2_ID
public static final Version V_2_3_2
public static final int V_2_3_3_ID
public static final Version V_2_3_3
public static final int V_2_3_4_ID
public static final Version V_2_3_4
public static final int V_2_3_5_ID
public static final Version V_2_3_5
public static final int V_2_4_0_ID
public static final Version V_2_4_0
public static final int V_2_4_1_ID
public static final Version V_2_4_1
public static final int V_2_4_2_ID
public static final Version V_2_4_2
public static final int V_2_4_3_ID
public static final Version V_2_4_3
public static final int V_2_4_4_ID
public static final Version V_2_4_4
public static final int V_2_4_5_ID
public static final Version V_2_4_5
public static final int V_2_4_6_ID
public static final Version V_2_4_6
public static final int V_5_0_0_alpha1_ID
public static final Version V_5_0_0_alpha1
public static final int V_5_0_0_alpha2_ID
public static final Version V_5_0_0_alpha2
public static final int V_5_0_0_alpha3_ID
public static final Version V_5_0_0_alpha3
public static final int V_5_0_0_alpha4_ID
public static final Version V_5_0_0_alpha4
public static final int V_5_0_0_alpha5_ID
public static final Version V_5_0_0_alpha5
public static final int V_5_0_0_beta1_ID
public static final Version V_5_0_0_beta1
public static final int V_5_0_0_rc1_ID
public static final Version V_5_0_0_rc1
public static final int V_5_0_0_ID
public static final Version V_5_0_0
public static final int V_5_0_1_ID
public static final Version V_5_0_1
public static final int V_5_0_2_ID
public static final Version V_5_0_2
public static final int V_5_1_1_ID
public static final Version V_5_1_1
public static final int V_5_1_2_ID
public static final Version V_5_1_2
public static final int V_5_2_0_ID
public static final Version V_5_2_0
public static final int V_5_2_1_ID
public static final Version V_5_2_1
public static final int V_5_2_2_ID
public static final Version V_5_2_2
public static final int V_5_3_0_ID
public static final Version V_5_3_0
public static final int V_5_3_1_ID
public static final Version V_5_3_1
public static final int V_5_3_2_ID
public static final Version V_5_3_2
public static final int V_5_3_3_ID
public static final Version V_5_3_3
public static final int V_5_4_0_ID
public static final Version V_5_4_0
public static final int V_5_4_1_ID
public static final Version V_5_4_1
public static final int V_5_4_2_ID
public static final Version V_5_4_2
public static final int V_5_4_3_ID
public static final Version V_5_4_3
public static final int V_5_5_0_ID
public static final Version V_5_5_0
public static final int V_5_5_1_ID
public static final Version V_5_5_1
public static final int V_5_5_2_ID
public static final Version V_5_5_2
public static final int V_5_5_3_ID
public static final Version V_5_5_3
public static final int V_5_6_0_ID
public static final Version V_5_6_0
public static final int V_5_6_1_ID
public static final Version V_5_6_1
public static final int V_5_6_2_ID
public static final Version V_5_6_2
public static final int V_5_6_3_ID
public static final Version V_5_6_3
public static final int V_5_6_4_ID
public static final Version V_5_6_4
public static final int V_5_6_5_ID
public static final Version V_5_6_5
public static final int V_5_6_6_ID
public static final Version V_5_6_6
public static final int V_5_6_7_ID_UNRELEASED
public static final Version V_5_6_7_UNRELEASED
public static final Version CURRENT
public final int id
public final byte major
public final byte minor
public final byte revision
public final byte build
public final org.apache.lucene.util.Version luceneVersion
public static Version readVersion(StreamInput in) throws java.io.IOException
java.io.IOException
public static Version fromId(int id)
public static Version indexCreated(Settings indexSettings)
Version
of Elasticsearch that has been used to create an index given its settings.java.lang.IllegalStateException
- if the given index settings doesn't contain a value for the key
public static void writeVersion(Version version, StreamOutput out) throws java.io.IOException
java.io.IOException
public static Version min(Version version1, Version version2)
@Deprecated public static Version smallest(Version version1, Version version2)
min(Version, Version)
insteadpublic static Version max(Version version1, Version version2)
public static Version fromString(java.lang.String version)
public boolean after(Version version)
public boolean onOrAfter(Version version)
public boolean before(Version version)
public boolean onOrBefore(Version version)
public int compareTo(Version other)
compareTo
in interface java.lang.Comparable<Version>
public Version minimumCompatibilityVersion()
public Version minimumIndexCompatibilityVersion()
public boolean isCompatible(Version version)
true
iff both version are compatible. Otherwise false
public static void main(java.lang.String[] args)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean isBeta()
public boolean isAlpha()
public boolean isRC()
public boolean isRelease()