Package org.elasticsearch.test.index
Class IndexVersionUtils
java.lang.Object
org.elasticsearch.test.index.IndexVersionUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<IndexVersion>
Returns all released versionsstatic IndexVersion
Returns the oldest knownIndexVersion
static IndexVersion
getNextVersion
(IndexVersion version) static IndexVersion
getPreviousMajorVersion
(IndexVersion version) static IndexVersion
static IndexVersion
getPreviousVersion
(IndexVersion version) static IndexVersion
randomCompatibleVersion
(Random random) Returns a randomIndexVersion
that is compatible withIndexVersion.current()
static IndexVersion
randomPreviousCompatibleVersion
(Random random, IndexVersion version) Returns a randomIndexVersion
that is compatible with the previous version toversion
static IndexVersion
Returns a randomIndexVersion
from all available versions.static IndexVersion
randomVersion
(Random random) Returns a randomIndexVersion
from all available versions.static IndexVersion
randomVersion
(Set<IndexVersion> ignore) Returns a randomIndexVersion
from all available versions without the ignore setstatic IndexVersion
randomVersionBetween
(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 randomIndexVersion
from all available versions. -
randomVersion
Returns a randomIndexVersion
from all available versions without the ignore set -
randomVersion
Returns a randomIndexVersion
from all available versions. -
randomVersionBetween
public static IndexVersion randomVersionBetween(Random random, @Nullable IndexVersion minVersion, @Nullable IndexVersion maxVersion) -
getPreviousVersion
-
getPreviousVersion
-
getPreviousMajorVersion
-
getNextVersion
-
randomCompatibleVersion
Returns a randomIndexVersion
that is compatible withIndexVersion.current()
-
randomPreviousCompatibleVersion
Returns a randomIndexVersion
that is compatible with the previous version toversion
-