Package org.apache.cassandra.utils
Enum Class StorageCompatibilityMode
- All Implemented Interfaces:
Serializable,Comparable<StorageCompatibilityMode>,Constable
The mode of compatibility with older Cassandra versions.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionStay compatible with Cassandra 4.x, opting out from any new features that will prevent a rollback to 4.x.Don't try to be compatible with older versions.Use the storage formats of the current version, but disabling features that are not compatible with any not-upgraded nodes in the cluster. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StorageCompatibilityModecurrent()booleandisabled()booleanisBefore(int major) voidvalidateSstableFormat(SSTableFormat<?, ?> selectedFormat) static StorageCompatibilityModeReturns the enum constant of this class with the specified name.static StorageCompatibilityMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CASSANDRA_4
Stay compatible with Cassandra 4.x, opting out from any new features that will prevent a rollback to 4.x. At the moment, this means: - Deletion times will be limited to 2038, instead of the year 2106 limit introduced by 5.0. -
UPGRADING
Use the storage formats of the current version, but disabling features that are not compatible with any not-upgraded nodes in the cluster. Use this during rolling upgrades to a new major Cassandra version. Once all nodes have been upgraded, you can set the compatibility toNONE. -
NONE
Don't try to be compatible with older versions. Data will be written with the most recent format, which might prevent a rollback to previous Cassandra versions. Features that are not compatible with older nodes will be enabled, assuming that all nodes in the cluster are in the same major version as this node.
-
-
Field Details
-
major
public final int major
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
current
-
disabled
public boolean disabled() -
isBefore
public boolean isBefore(int major) -
validateSstableFormat
-