Package org.elasticsearch.test.index
Class IndexVersionUtils
java.lang.Object
org.elasticsearch.test.index.IndexVersionUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<IndexVersion> Returns all released versionsstatic IndexVersionReturns the oldest knownIndexVersionstatic IndexVersiongetNextVersion(IndexVersion version) static IndexVersiongetPreviousMajorVersion(IndexVersion version) static IndexVersionstatic IndexVersiongetPreviousVersion(IndexVersion version) static IndexVersionrandomCompatibleVersion(Random random) Returns a randomIndexVersionthat is compatible withIndexVersion.current()static IndexVersionrandomPreviousCompatibleVersion(Random random, IndexVersion version) Returns a randomIndexVersionthat is compatible with the previous version toversionstatic IndexVersionReturns a randomIndexVersionfrom all available versions.static IndexVersionrandomVersion(Random random) Returns a randomIndexVersionfrom all available versions.static IndexVersionrandomVersion(Set<IndexVersion> ignore) Returns a randomIndexVersionfrom all available versions without the ignore setstatic IndexVersionrandomVersionBetween(Random random, IndexVersion minVersion, IndexVersion maxVersion)
-
Constructor Details
-
IndexVersionUtils
public IndexVersionUtils()
-
-
Method Details
-
allReleasedVersions
Returns all released versions -
getFirstVersion
Returns the oldest knownIndexVersion -
randomVersion
Returns a randomIndexVersionfrom all available versions. -
randomVersion
Returns a randomIndexVersionfrom all available versions without the ignore set -
randomVersion
Returns a randomIndexVersionfrom all available versions. -
randomVersionBetween
public static IndexVersion randomVersionBetween(Random random, @Nullable IndexVersion minVersion, @Nullable IndexVersion maxVersion) -
getPreviousVersion
-
getPreviousVersion
-
getPreviousMajorVersion
-
getNextVersion
-
randomCompatibleVersion
Returns a randomIndexVersionthat is compatible withIndexVersion.current() -
randomPreviousCompatibleVersion
Returns a randomIndexVersionthat is compatible with the previous version toversion
-